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:
server = new.puppet.master.fqdn
ca_server = new.puppet.master.fqdn
ca_port = 8141
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