Where does the puppet master get its hostname

79 views
Skip to first unread message

Greg Coit

unread,
Sep 10, 2013, 3:09:00 PM9/10/13
to puppet...@googlegroups.com
Hi all,

I have a new puppet server named grover.example.com.  I've set both the server and certname to grover.example.com in /etc/puppet/puppet.conf (this is CentOS 6.4).  I've also verified the hostname:


However, when I start puppetmaster, it always created a cert named grover and *not* grover.example.com:

puppet master --no-daemonize --verbose:
Info: Creating a new SSL key for grover
Info: Creating a new SSL certificate request for grover
Info: Certificate Request fingerprint (SHA256): 07:04:47:E0:F5:26:7A:B3:29:83:12:72:09:E0:45:9F:17:9F:E1:57:DC:05:71:10:FE:31:47:5E:4F:47:38:8A
Notice: grover has a waiting certificate request
Notice: Signed certificate request for grover
Notice: Removing file Puppet::SSL::CertificateRequest grover at '/var/lib/puppet/ssl/ca/requests/grover.pem'
Notice: Removing file Puppet::SSL::CertificateRequest grover at '/var/lib/puppet/ssl/certificate_requests/grover.pem'
Notice: Starting Puppet master version 3.2.4

Using "puppet master --no-daemonize --verbose --server grover.example.com" makes no difference.

Any ideas how to fix this?

Thank you!!!

Greg

Nathan Valentine

unread,
Sep 10, 2013, 3:16:12 PM9/10/13
to puppet...@googlegroups.com
Check both of the following: /etc/hosts and /etc/sysconfig/network. 

-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

Greg Coit

unread,
Sep 10, 2013, 3:23:35 PM9/10/13
to puppet...@googlegroups.com
Man, I could have swear i tested this...

/etc/sysconfig/network was correct.

/ets/hosts had:


I switched that to:

ip grover.example.com grover

and the cert is now named grover.example.com.  :) 

Thank you!!!

Greg

Cory Stoker

unread,
Sep 10, 2013, 3:24:41 PM9/10/13
to puppet...@googlegroups.com
Puppet uses Facter to determine the FQDN. I believe Facter uses a few
methods to try and figure out the domain part, namely:
hostname -f
dnsdomainname
parse out /etc/resolv.conf for the domain or search lines.

HTH,
Cory
> --
> 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 post to this group, send email to puppet...@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.

Nathan Valentine

unread,
Sep 10, 2013, 3:34:21 PM9/10/13
to puppet...@googlegroups.com
Out of curiosity, your Puppet master was spun up how? As a Vagrant VM?


--
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 post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Greg Coit

unread,
Sep 10, 2013, 3:37:58 PM9/10/13
to puppet...@googlegroups.com
Nathan,

It was spun up by hand from a CentOS 6.4 disk. I added the grover
lines to the /etc/hosts file myself after setting the hostname.

Greg
--
Greg Coit
greg...@gmail.com
707-845-0317
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/MKzWpt1m7mQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
0 new messages