Problem scenario
When you are configuring a server to be a Chef client, you run this command:
/usr/bin/chef-client
But you get this error:
“Chef encountered an error attempting to create the client <hostnameOfChefClientServer>”
Solution
Verify you have a client.pem file in this directory on the server you are running the command on: /etc/chef/
The Chef documentation says this:
“Every request made by the chef-client to the Chef server must be an authenticated request using the Chef server API and a private key.
…
Continue reading “Troubleshooting An Initial Run Chef Client”