Hi,
I have two agents. I call up the agent with the same command as follow:
puppet agent --test
By one agent, it works. But by the other, it doesn't and I got error as follow:
...
]# puppet agent --test
err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: getaddrinfo: Name or service not known
According to the puppet doc, it tells it could be fixed with followings:
...
This usually happens when Puppet master is installed with a certname that isn’t its hostname. To fix these errors, edit /etc/puppetlabs/puppet/manifests/site.pp on the Puppet master so that the following resource’s server attribute points to the correct hostname:
# Define filebucket 'main':
filebucket { 'main':
server => '<PUPPET MASTER'S DNS NAME>',
path => false,
}
I did what the doc tells but I got the same error as before.
Has someone idea?
Wei