migrating puppet clients to a new puppet master (old puppet master server gone, only using backup)

Posted by user47650 on Server Fault See other posts from Server Fault or by user47650
Published on 2010-11-17T11:44:12Z Indexed on 2011/01/06 21:55 UTC
Read the original article Hit count: 521

Filed under:

My puppet master server had a hardware failure, and I have restored to another box. However this box has different hardware and hostname.

If I restore the existing /etc/puppet directory to the new server, the puppetmaster will not start with the following error;

# puppetmasterd --debug --verbose Could not prepare for execution: Retrieved certificate does not match private key; please remove certificate from server and regenerate it with the current key

So what steps do I need to take to allow the new puppetmaster to start, and to generate a new puppetmaster certificate using the old ca..

Also will the puppet clients actually report in to a different puppet server using a server certificate that has been generated with the old CA?

© Server Fault or respective owner

Related posts about puppet