Ask Your Question

How to configure different canonical name for master?

asked 2016-04-15 03:32:00 -0600

hadmut gravatar image

Given problem: puppet master (3.8) runs on a machine with a host name of e.g. AAA.

This hostname AAA is not resolvable for the clients. Therefore, the puppet master was given a new name, e.g. BBB with the certname directive in /etc/puppet/puppet.conf. The clients can resolve BBB.

Everything works fine with that, except installing files from puppet with source=>puppet:///... , the clients complain that they cannot resolve AAA then. (Problem also occurs with using filebuckets defined with server=> $servername, so it seems to boil down that the master passes it's hostname instead of it's certname as $servername to the client.)

So although the master calls itself BBB in the certificate, it still tells the client to use AAA as the master's name.

I did not find a way to configure the master to use its certname (BBB) as the name for file access as well.

How to fix that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-15 17:05:10 -0600

hadmut gravatar image

Found the solution (or workaround) myself:

puppetmaster uses facter's fqdn value to find it's own hostname. Setting the fqdn in /etc/facter/facts.d seems to solve the problem.

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

1 follower


Asked: 2016-04-15 03:11:07 -0600

Seen: 38 times

Last updated: Apr 15 '16