I am getting error in puppet agent test:
parallels@puppet-server:~$ puppet agent -tError: Could not request certificate: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)Exiting; failed to retrieve certificate and waitforcert is disabledparallels@puppet-server:~$ sudo puppet agent -tWarning: Unable to fetch my node definition, but the agent run will continue:Warning: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)Info: Retrieving pluginfactsError: /File[/var/cache/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)Error: /File[/var/cache/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)Info: Retrieving pluginError: /File[/var/cache/puppet/lib]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)Error: /File[/var/cache/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)Error: Could not retrieve catalog from remote server: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)Warning: Not using cache on failed catalogError: Could not retrieve catalog; skipping runError: Could not send report: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)
MASTER CONF FILE: /etc/puppet/puppet.conf
:
[main]ssldir = /var/lib/puppet/ssllogdir = /var/log/puppetlocalconfig = $vardir/localconfigclassfile = $vardir/classes.txt[master]environment = productionserver = puppet-serverca_server = puppet-servervardir = /var/lib/puppetcadir = /var/lib/puppet/ssl/cadns_alt_names = puppet
MASTER /etc/hosts
:
127.0.0.1 localhost127.0.1.1 parallels-Parallels-Virtual-Platform# The following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters192.168.64.14 puppet-server 192.168.64.16 node-01
AGENT CONF FILE: /etc/puppet/puppet.conf
:
[main]ssldir = /var/lib/puppet/sslvardir = /var/lib/puppetcadir = /var/lib/puppet/ssl/cadns_alt_names = puppet[agent]server=192.168.64.14ca_server=192.168.64.14
AGENT /etc/hosts
:
127.0.0.1 localhost127.0.1.1 parallels-Parallels-Virtual-Platform192.168.64.14 puppet-server 192.168.64.16 node-01# The following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters