when running chef-client, you need to verify that you have the fqdn / node name (node_name) in your client configuration.
so how to solve it:
- vi /etc/chef/client.rb
- add the hostname (node name) as follow (replace the NAME with your server name): node_name "NAME"
- save the file
- run chef-client and enjoy
also the following error can point on the same issue: http://chef-server:4040/nodes/localhost
the localhost is the default, so you must change the node name to you hostname.
BTW - the hostname is the same name you can find when running: knife client list

No comments:
Post a Comment