尝试运行测试厨房并使用rvm cookbook。
一旦节点与rvm cookbook汇合,我就再也无法运行kitchen converge
,因为它无法再找到chef-client二进制文件。
/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:298:in `to_specs': Could not find 'chef' (>= 0) among 13 total gem(s) (Gem::LoadError)
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:309:in `to_spec'
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /opt/chef/bin/chef-client:22:in `<main>'
>>>>>> Converge failed on instance <default-centos-66>.
>>>>>> Please see .kitchen/logs/default-centos-66.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
']
>>>>>> ----------------------
通常在节点上我们运行rvm use system ; chef-client
来运行厨师综合二进制文件。
如何才能使用rvm cookbook(https://github.com/martinisoft/chef-rvm)并运行kitchen converge
以便在更新我正在制作的食谱后重复运行收敛?