Hey there,
I did this some time ago and ended using the "stupid" method. So if
On 05/08/14 10:45 AM, Danny Roberts wrote:
> We have a requirement to change the Host name of our Puppet Master (not
> a great idea but sadly out of my control). I could not find any
> documentation on this subject, does nayone know the process for doing
> something like this?
>
> Or would it need to be a complete rebuild then re-import of our Puppet code?
there's a better way than what I'll describe, please someone step in.
What really matters when you rename your master is your master SSL
certificate. Clients will be verifying if the puppet master's hostname
matches the one advertised by the certificate.
So when I changed the hostname, I had to create a new certificate for
the master, and then recreate certificates for clients and
"re-registering" all clients to the master. e.g.:
on all clients:
* wipe out /var/lib/puppet/ssl
* run puppet agent -t --waitforcert 10
* on master, sign client certificate
this was very time-consuming though.
+1
You don't need to re-register all clients. Just generate a new cert for the master with both old and new name and sign in.
Regards
--
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/CACqVBqCAUEdWujqa6UW%2BfzgJ1y3Db5bjGSOE8Qh5UU_ErqUhCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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/jLeuapo7n1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e3813e2f-832e-4c61-bd97-367dc71f1d45%40googlegroups.com.
2014-08-05 23:23 GMT+02:00 Gabriel Filion <gab...@lelutin.ca>:
Hi,> On 05/08/14 01:28 PM, Nan Liu wrote:
>> Please don't resign all client certificates. All you need to do is
>> recreate a puppet master certificate with dns alt name accepting both
>> the old and new puppet master hostname. Because passenger and other
>> configuration may already refer to the existing pem file name, it's
>> easier to just add the new hostname to the dns_alt_names accept list
>
> ah, thanks a lot for this. I was sure there was a more clever way to do
> this :)
>
> --
> Gabriel Filion
>
I didn't know it either. :)
This drive me to ask a related question: Can the same approach be used
when the certificate expires?