Getting the error "Could not Request Certificate: getaddrinfo: Name or Service not Known"

asked 2018-02-26 02:55:44 -0500

updated 2018-02-26 12:40:19 -0500

DarylW gravatar image

When I run "puppet agent -t or puppet agent --test" I am getting the below error

Could not Request Certificate: getaddrinfo: Name or Service not Known

My puppet.conf files details are as below Master:-

[main]
dns_alt_names = puppet,test01,test01.learn.com,test02.learn.com
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
#templatedir=$confdir/templates

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN 
ssl_client_verify_header = SSL_CLIENT_VERIFY

Slave:-

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
#templatedir=$confdir/templates

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN 
ssl_client_verify_header = SSL_CLIENT_VERIFY

[agent]
server = test01.learn.com
edit retag flag offensive close merge delete