我遇到了厨师零的问题;奇怪的是,我一直在以这种方式配置许多节点而没有真正改变东西,但现在它已经坏了。
(python)➜ chef_files git:(develop) ✗ knife node list
feeder2
(python)➜ chef_files git:(develop) ✗ knife node show feeder2
Node Name: feeder2
Environment: production
FQDN:
IP:
Run List: role[base], role[feeder]
Roles:
Recipes:
Platform:
Tags:
(python)➜ chef_files git:(develop) ✗ knife role list
base
feeder
(python)➜ chef_files git:(develop) ✗ knife zero converge --config <...>/chef_files/.chef/knife.rb --ssh-user ec2-user --identity-file <...>.pem -P "$login_password" name:feeder2
INFO: Using configuration from <...>/chef_files/.chef/knife.rb
INFO: Remote command: sudo chef-client -S http://127.0.0.1:18889
INFO: Using configuration from <...>/chef_files/.chef/knife.rb
INFO: Started chef-zero at http://localhost:8889 with repository at .
One version per cookbook
clients at <...>/chef_files/clients
cookbooks at <...>/chef_files/cookbooks, <...>/chef_files/site-cookbooks
data_bags at <...>/chef_files/data_bags
environments at <...>/chef_files/environments
nodes at <...>/chef_files/nodes
roles at <...>/chef_files/roles
users at <...>/chef_files/users
policies at <...>/chef_files/policies
Starting Chef Client, version 12.16.42
resolving cookbooks for run list: []
Synchronizing Cookbooks:
Installing Cookbook Gems:
Compiling Cookbooks...
[2017-02-11T15:30:04+00:00] WARN: Node feeder2 has an empty run list.
Converging 0 resources
我已经检查过了,但是角色/节点 json 文件都在那里......
任何提示/帮助表示赞赏!保罗