我一直在尝试使用Chef Workstation及其包含的chef-run
CLI 安装特定(最新)版本的 Ruby。
这是我用于 Ruby 的配方:
package 'ruby' do
version '2.5.3'
action :install
end
其中,使用命令行运行
chef-run -i /path-to/private_key user@host ruby.rb
产生不是很有帮助的消息:
[✔] Packaging cookbook... done!
[✔] Generating local policyfile... exporting... done!
[✖] Applying ruby from ruby.rb to target.
└── [✖] [127.0.0.1] Failed to converge ruby.
The converge of the remote host failed for the
following reason:
Expected process to exit with [0], but received '100'
我试图用-V
标志运行它,或者寻找一个日志文件,但我似乎找不到它。任何想法?