Ask Your Question

does the agent's hostname need to be unique from the agent's perspective?

asked 2014-05-30 15:48:12 -0600

biggsean gravatar image

updated 2014-05-30 15:50:18 -0600

I have several seperate domains that all share the same "pretty" hostname. E.g:

however, due to historical reasons and third-party software restrictions, the hostname functions only returns the node[12] portion. These are solaris boxes, so domainname is used to define the rest. The fqdn's are defined in DNS.

Will this be a problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-31 17:02:10 -0600

Stefan gravatar image

From puppet's perspective the hostname and the DNS name are not relevant at all. The only thing that has to be unique is the certname. The certname is part of the agent's certificate and is used to identify a puppet node.

The certname however defaults to the fqdn fact of your agent, so

on your agent:
# facter fqdn
# puppet agent --configprint certname

should return the same thing. And this value has to be unique across all your machines. Please make sure that the fqdn fact does indeed return the fqdn and not the shortname.

Please also note that when you write a node definition like

node '' {

you also don't necessarily need a DNS entry for all your agents because again, the certname (and not the DNS name) of your agent is used to find a proper node definition (at least if you haven't changed that behaviour on you master with a different nodename setting)

Does this answer your question?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-05-30 15:48:12 -0600

Seen: 157 times

Last updated: May 31 '14