ruby - 使用 chef-run 安装特定的 Ruby 版本
问题描述
我一直在尝试使用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
标志运行它,或者寻找一个日志文件,但我似乎找不到它。任何想法?
解决方案
通过在chef-workstation 配置log_level
中设置它来提高debug
$ cat ~/.chef-workstation/config.toml
[log]
level="debug"
推荐阅读
- android - 响应式布局设计
- iterator - 这是迭代一组值的规范方法吗?
- php - php多维数组检查值是否更大
- react-native - 在样式中设置`backgroundColor`隐藏`View`组件
- angular - 打字稿错误:提供的参数与调用目标的任何签名都不匹配
- javascript - React 多次渲染一个选择字段
- keras - 将 Dropout 与 Keras 和 LSTM/GRU 单元一起使用
- javascript - ng-options 默认值需要双击选择一个值
- sql - 相当于Oracle中的R cbind() 函数?
- ios - 无法使用 Predicate 作为字符串从 coreData 中获取?