After registering and having client certificate signed by the master, if you attempt issue a configuration run and get the following error:
# puppet agent --test Error: Could not request certificate: getaddrinfo: Name or service not known Exiting; failed to retrieve certificate and waitforcert is disabled
It means that the client can’t find the Puppet master. In my case I had a A record resolving to my puppet master but that wasn’t enough. I had to specify the server directive in my /etc/puppet.conf
After this was in, the puppet agent run completed successfully. I find this an easier solution then adding manual host entries since my /etc/hosts and since your master’s hostname usually change you can usually hard code with your config management tool.
comments powered by Disqus