作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在运行以下命令:
chef-client --local-mode -j deploy-backend.json
{
"run-list" : [
"deploy-dev::sysprepare",
"deploy-dev::deploybackend",
"deploy-dev::deploynginx"
]
}
$ sudo chef-client --local-mode -j cookbooks/deploy-backend.json
[2017-07-13T13:19:11+02:00] WARN: No config file found or specified on command line, using command line options.
Starting Chef Client, version 13.2.20
resolving cookbooks for run list: ["deploy-dev::sysprepare", "deploy-dev::deploybackend", "deploy-dev::deploynginx"]
Synchronizing Cookbooks:
- deploy-dev (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 29 resources
Recipe: deploy-dev::sysprepare
...
...
- reload service service[nginx]
Running handlers:
Running handlers complete
Chef Client finished, 11/33 resources updated in 01 minutes 32 seconds
[2017-07-13T13:20:43+02:00] WARN: No config file found or specified on command line, using command line options.
[2017-07-13T13:20:43+02:00] WARN: No config file found or specified on command line, using command line options.
[2017-07-13T13:20:43+02:00] FATAL: Cannot load configuration from cookbooks/deploy-backend.json
[2017-07-13T13:20:43+02:00] FATAL: Cannot load configuration from cookbooks/deploy-backend.json
chef-client --local-mode -r "deploy-dev::sysprepare,deploy-dev::deploybackend,deploy-dev::deploynginx"
最佳答案
你应该使用你的json的完整路径
sudo chef-client --local-mode -j /opt/chef/cookbooks/deploy-backend.json
关于chef-infra - "FATAL: Cannot load configuration"在 Chef 客户端之后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45079652/
我是一名优秀的程序员,十分优秀!