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 in Puppet by Karan
• 1,170 points
12 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 by Sirajul
• 16,640 points

Related Questions In Puppet

0 votes
1 answer
0 votes
0 answers
0 votes
1 answer

How do I start a puppet server?

Hey if you're using Ubuntu, you can ...READ MORE

answered Feb 21 in Puppet by Kavyashri
23 views
0 votes
1 answer

How is puppet used as a Configuration Management tool?

System Administrators usually perform repetitive tasks such ...READ MORE

answered Mar 4 in Puppet by Saurab
50 views
+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,380 points
110 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 in Puppet by Sirajul
• 16,640 points
10 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 in Puppet by Sirajul
• 16,640 points
14 views