Uninstalling
Puppet Enterprise includes a script for uninstalling. You can uninstall component infrastructure nodes or from agent nodes.
Uninstall infrastructure nodes
The puppet-enterprise-uninstaller
script is installed on the master. In order to
uninstall, you must run the uninstaller on each infrastructure node.
By default, the uninstaller removes the software, users, logs, cron jobs, and caches, but it leaves your modules, manifests, certificates, databases, and configuration files in place, as well as the home directories of any users it removes.
Uninstall agents
You can remove the agent from nodes that you no longer want to manage.
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.
Uninstall macOS agents
Use the command line to remove all aspects of the agent from macOS nodes.
Uninstaller options
You can use the following command-line flags to change the uninstaller's behavior.
-
-p
— Purge additional files. With this flag, the uninstaller also removes all configuration files, modules, manifests, certificates, the home directories of any users created by the installer, and the Puppet public GPG key used for package verification. -
-d
— Also remove any databases created during installation. -
-h
— Display a help message. -
-n
— Run innoop
mode; show commands that would have been run during uninstallation without actually running them. -
-y
— Don't ask to confirm uninstallation, assuming an answer of yes.
To remove every trace of PE from a system, run:
$ sudo ./puppet-enterprise-uninstaller -d -p