Im at the start of learning puppet. So far I successfully setup my master with dashboard and a couple of agents. But on one of my testing nodes I made a mistake when adding the node. I added it twice with 2 different certificates.
the first certificate is just the hostname and the other one is the FQDN. I cant seem to remove either of them properly. I used the puppet syntax for revoking the certificate. But when the next puppet run comes it adds itself to the dashboard again and gives me all kinda of errors cos its not allowed to do stuff. Im not sure if this is due to a lingering config on the master or a configuration on the agent.
how can I get a clean slate for an agent node?
As you spoke about a Puppet dashboard, I will make the assertion that you are on Puppet-Enterprise.
In order to disable the agent of a node to run, you can do the following:
To do on the client:
Then, on the puppet-master, via the dashboard, you can remove this specific node in the node view.
You can find more official information there: https://docs.puppetlabs.com/pe/latest/node_deactivation.html