Puppet Master: Multiple agents with same hostname

puppetpuppet-agentpuppetmaster

I'd like to use Puppet master to configure multiple development VMs with Vagrant: eg: vagrant creates a new box and provisions it using Puppet agent.

However, some testing seems to show that Puppet master assigns certificates per hostname, therefore if two clients have the same hostname, Puppet refuses to download the catalog. Is there a way on the Puppet agent/server to allow duplicate hostnames?

No confidential data is being deployed using Puppet, it is just setting up repositories and installing required software, so security isn't really a concern.

Best Answer

In your first run (when you send the request for a new certificate) you could use the parameter --certname to give a specific name to every machine (also if they have the same hostname)

So on the shell you could use:

puppet agent -t --certname=myhostXX

On the puppet server you'll see a new request with that name.

Could this help in your environment ?

Related Topic