尝试运行 test-kitchen 并使用 rvm 食谱。一旦节点与 rvm 食谱收敛,我就无法再运行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 食谱(https://github.com/martinisoft/chef-rvm)并在kitchen converge
对我正在编写的食谱进行更新后反复运行收敛?