Adding and removing agent nodes
After you install a Puppet agent on a node, accept its certificate signing request and begin managing it with Puppet Enterprise (PE). Or remove nodes that you no longer need.
Managing certificate signing requests
When you install a Puppet agent on a node, the agent automatically submits a certificate signing request (CSR) to the master. You must accept this request to bring before the node under PE management can be added your deployment. This allows Puppet to run on the node and enforce your configuration, which in turn adds node information to PuppetDB and makes the node available throughout the console.
You can approve certificate requests from the PE console or the command line. If DNS altnames are set up for agent nodes, you must approve the CSRs on use the command line interface .
- To accept or reject CSRs in the console or on the command line, you need the permission Certificate requests: Accept and reject.
- To manage certificate requests in the console, you also need the permission Console: View.
Managing certificate signing requests in the console
A certificate signing request appears in the console on the Unsigned certs page after you add an agent node to inventory. Accept or reject submitted requests individually or in a batch.
- To manage requests individually, click Accept or Reject.
- To manage the entire list of requests, click Accept All or Reject All. Nodes are processed in batches. If you close the browser window or navigate to another website while processing is in progress, only the current batch is processed.
After you accept the certificate signing request, the node appears in the console after the next Puppet run. To make a node available immediately after you approve the request, run Puppet on demand.
Managing certificate signing requests on the command line
You can view, approve, and reject node requests using the command line.
$ sudo puppetserver ca list
$ sudo puppetserver ca sign <NAME>
Remove agent nodes
If you no longer wish to manage an agent node, you can remove it and make its license available for another node.
Removing a node:
Deactivates the node in PuppetDB.
Deletes the Puppet master’s information cache for the node.
Makes the license available for another node.
Makes the hostname available for another node.
Uninstall *nix agents
The *nix agent package includes an uninstall script, which you can use when you're ready to retire a node.
-
On the agent node, run the uninstall script:
run /opt/puppetlabs/bin/puppet-enterprise-uninstaller
- Follow prompts to uninstall.
-
(Optional) If you plan to reinstall on the node at
a later date, remove the agent certificate for the agent from the master:
puppetserver ca clean <AGENT CERT NAME>
Uninstall Windows agents
To uninstall the agent from a Windows node, use the Windows Add or Remove Programs interface, or uninstall from the command line.
Uninstalling the agent removes the Puppet program directory, the agent service, and all related registry keys. The data directory remains intact, including all SSL keys. To completely remove Puppet from the system, manually delete the data directory.