Ask Your Question
0

pptAdm@pptagnt:~$ puppet agent -t Error: Could not request certificate: Failed to open TCP connection to puppet:81 40 (getaddrinfo: Name or service not known) Exiting; failed to retrieve certificate and waitforcert is disabled pptAdm@pptagnt:~$

asked 2017-05-26 00:34:36 -0500

Chin gravatar image

I am receiving the above mentioned error. I have launched this master and agent instance from azure with all ports open. But stilling getting this error. Can someone please advise me what to do.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-05-26 10:53:04 -0500

smarlow gravatar image

By default the Puppet agent assumes that the server will be called 'puppet'. In this case your agent cannot resolve the name 'puppet' and so is failing.

You need to either:

  • Add a DNS entry for puppet
  • Add a hosts file entry for puppet
  • Or set server to the hostname of your master in /etc/puppetlabs/puppet/puppet.conf and ensure that it can be resolved via DNS/hosts
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-05-26 00:34:36 -0500

Seen: 29 times

Last updated: May 26