Nach Chef Development Kit Installation auf einem Knoten, bekam ich einen Fehler während der Bootstrap dieses Knotens:Chef - kann nicht konvertieren Chef :: Knoten :: VividMash zu String
Chef Development Kit Version: 0.15.16
chef-client version: 12.11.18
delivery version: master (444effdf9c81908795e88156c43b5f)
berks version: 4.3.5
kitchen version: 1.10.0
Compiling Cookbooks...
WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt
WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/base/recipes/default.rb =============================================================
TypeError
can't convert Chef::Node::VividMash to String (Chef::Node::VividMash#to_str gives Chef::Node::VividMash)
Cookbook Trace:
/var/chef/cache/cookbooks/base/recipes/packages.rb:10:in `block in from_file'
Relevant File Content:
var/chef/cache/cookbooks/base/recipes/packages.rb:
3: # Recipe:: app
node['packages'].each do |name|
10>> package name do
11: action :upgrade
12: end
13: end
14:
15:
Running handlers:
ERROR: Running exception handlers
6 Running handlers complete
ERROR: Exception handlers complete
FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
ERROR: can't convert Chef::Node::VividMash to String (Chef::Node::VividMash#to_str gives Chef::Node::VividMash)
FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[SSH] ERROR: Read from remote host : An existing connection was forcibly closed by the remote host.
[SSH] FAIL: Write failed: An existing connection was forcibly closed by the remote host.
Chef Server 11.
Mit Koch-Client 11 das Kochbuch laufen ohne Probleme
default[:packages] = %w(sysstat screen mlocate telnet nmap openssl vim)
Irgendeine Idee, wie man es repariert?
Danke!
danke, ich werde versuchen, es zu beheben, wissen Sie, warum es mit Chef-Client 11 arbeitet? Was ist der Zweck von etwas? –
Ich bearbeite meine Frage und fügte die Pakete hinzu –
Ich würde einige Logging hinzufügen: 'Chef :: Log.debug (" name = # {name.inspect} "), um zu sehen, was der Wert in der Schleife ist. – coderanger