I have Puppet master and Puppet agent, and the agent succeed to communicate with the master. Now I want to use other machine as my Puppet master. I create another Puppet master, called master-2, and run in the agent:
sudo puppet agent -t --server master-2
that cause to error:
certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA: master-2]
I copied the folder /var/lib/puppet/ssl from master to master-2, and now the above command succeeded.
Is there a way to prevent an agent communication with the first master? How I can remove the first master certificates from the agent and add a new certificates of master-2?