Multiple puppet agents with the same name

42 views
Skip to first unread message

Markus Bischof

unread,
Oct 7, 2014, 7:17:27 AM10/7/14
to puppet...@googlegroups.com
Hi there,

I'm pretty new to puppet and have a general question.

I will have multiple (vagrant) machines wich i want to manage via puppet. The "problem" is that all the machines will have the same name because they are development machines wich are run by different developers. Is it a problem for puppet if all the machines have the same name?


Markus

denmat

unread,
Oct 8, 2014, 1:57:29 AM10/8/14
to puppet...@googlegroups.com
Hi, 

that depends on your manifest and if they need to talk to a puppet master or you are just doing a puppet apply (masterless). 

Have a look at the Vagrantfile docs on puppet provisioners and you may get inspired. Also you can pass in 'puppet_node' names and facts at run time (with a puppet master).

There are other ways to change the hostnames of the machines in Vagrant too:

Den 

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c4db0889-793d-4edc-86e6-8c6ca9e3c3e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Felix Frank

unread,
Oct 31, 2014, 5:47:03 AM10/31/14
to puppet...@googlegroups.com
On 10/08/2014 07:57 AM, denmat wrote:
> Hi,
>
> that depends on your manifest and if they need to talk to a puppet
> master or you are just doing a puppet apply (masterless).

This.

But please note - the hostname is not the issue here. It's the
duplicated $certname that will cause you head aches.

Do not share a certificate among multiple agents!

If you do want a master and PuppetDB, but have to duplicate host names,
consider using randomized certnames.
Reply all
Reply to author
Forward
0 new messages