我一直在尝试使用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
标志运行它,或寻找日志文件,但是我似乎找不到它。有想法吗?
答案 0 :(得分:1)
通过将chef-workstation configuration中的log_level
设置为debug
来提升$ cat ~/.chef-workstation/config.toml
[log]
level="debug"
NA