Puppet master/agent basic setup

puppet

I'm trying to setup a basic puppet agent/master use-case with an agent server and a master. I've setup two servers with puppet and puppet master respectively.

After the following setup of both servers:

puppet master --no-daemonize --verbose
puppet agent --test
puppet cert --list to get the list, 
puppet cert --sign <certname> to sign it.
puppet agent --test

I get the message:

err: Could not retrieve catalog from remote server: hostname was not match with the server certificate
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: hostname was not match with the server certificate

What do I need to do in order to get the agent/master to be able to talk to each other?

Best Answer

Make sure your client can resolve "puppet". Forward and reverse DNS entries are important. As a quick test, add an entry to /etc/hosts with your puppet master's IP and name and try again.