To completely remove a node from PE, you must purge the node and revoke its certificate so that it doesn’t continue to check in.
Removing a node:
On the agent node, stop the agent service.
service puppet stop
service pe-puppet stop
Tip: You can run
puppet --version to see which version of Puppet you’re using.
On the master, purge the node:
puppet node purge <CERTNAME>
The node’s certificate is revoked, the certificate revocation list (CRL) is updated, and the node is deactivated in PuppetDB and removed from the console, increasing your license count. The node can’t check in or re-register with PuppetDB on the next run.
If you have compile masters, run Puppet on them:
puppet agent -t
The updated CRL is managed by Puppet and distributed to compile masters.
(Optional) If the node you’re removing was pinned to any node groups, manually unpin it from individual node groups or from all node groups using the
unpin-from-all command endpoint.
(Optional) If the node still exists but you no longer want to manage it, stop MCollective on the node:
service mcollective stop
service pe-mcollective stop