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
• 8,200 points
34 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
• 46,080 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
• 46,080 points
493 views
0 votes
1 answer
+1 vote
0 answers

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

I am using AWS EC2 VM as ...READ MORE

Jan 12 in Puppet by Madhusudan
• 130 points
38 views
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
311 views
0 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
• 46,080 points
33 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
• 46,080 points
48 views