Changing a Puppet Master

0 votes
I have installed Puppet Master on Linux and configured a puppet client/agent node. I want to change my puppet master and make the puppet client as the new puppet master. How can I do it?
Jul 31, 2019 in Puppet by Karan
• 19,610 points
1,735 views

1 answer to this question.

0 votes

Sometimes it may be necessary to change the Puppet Master.

To point a particular client to a new Puppet Master, follow the steps given below.

On the Puppet Client:

  • Enter the following changes into the /etc/puppet/puppet.conf file.

  • Code Changes on Client to Switch Puppet Masters

server = new.puppet.master.fqdn
ca_server = new.puppet.master.fqdn
ca_port = 8141
  • To remove all files and sub-directories in the /var/lib/puppet/ssl directory, run the following:

 cd /var/lib/puppet/ssl. 
 rm -rf ./*.
  • Assuming the new Puppet Master has been set up to properly accept the client, type puppet agent --test to run a full Puppet run while pointing to the new server.

  • The client will now be synchronized with the new Puppet Master.

On the Old Puppet Master:

  • Remove or comment out all items for the client node in the /etc/puppet/hieradata/hosts space.

  • To run puppet agent in noop mode to ensure that there are no inadvertent errors, run the following:

puppet agent --test --noop
answered Jul 31, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

Puppet: Error in generating new certificates when a new puppet master is created.

A new certificate has to be generated ...READ MORE

answered Aug 29, 2019 in Puppet by Sirajul
• 59,230 points
7,481 views
0 votes
1 answer
+1 vote
1 answer

I am running a Jenkins job to sign the certificate by puppet master but it is failing

Refer to https://www.edureka.co/community/55971/puppet-error-while-signing-the-certificates This addresses a similar query like ...READ MORE

answered Mar 13, 2020 in Puppet by Liana
1,294 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 views
+2 votes
1 answer
0 votes
1 answer

Puppet: Promote a replica to a Master.

Verify that the master is permanently offline. If ...READ MORE

answered Aug 1, 2019 in Puppet by Sirajul
• 59,230 points
828 views
0 votes
1 answer

Puppet: How many slave nodes can i configure with a single puppet master?

Open source Puppet doesn't have any kind ...READ MORE

answered Aug 9, 2019 in Puppet by Sirajul
• 59,230 points
1,054 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP