Uninstalling
Puppet Enterprise (PE) includes a script for uninstalling. You can uninstall infrastructure nodes or uninstall the agent from agent nodes.
Uninstall infrastructure nodes
The puppet-enterprise-uninstaller
script is installed on the primary
server. You must run the uninstaller script on each infrastructure node you want to
uninstall.
chron
jobs, and caches. However, the uninstaller does
not remove:- Modules
- Manifests
- Certificates
- Databases
- Configuration files
- Home directories of any removed users
Uninstall agents
You can remove the puppet-agent
package from nodes
that you no longer want Puppet Enterprise (PE) to manage.
Uninstall *nix agents
The *nix agent package includes an uninstall script you can use to remove the agent from the node.
-
On the agent node, run the uninstall script:
/opt/puppetlabs/bin/puppet-enterprise-uninstaller
- Follow the prompts to complete the uninstallation.
-
Optional:
If you want to reinstall the agent on the node later, make sure you remove the
node's agent certificate from the primary server. To do this, on the primary
server run:
puppetserver ca clean --certname <AGENT_CERT_NAME>
Uninstall Windows agents
To uninstall the agent from a Windows node, use the Windows Add or Remove Programs interface or the command line.
-
Uninstall the agent:
- Use the Windows Add or Remove Programs interface.
- Use the command line if you have the original
.msi
file or know the installed MSI's product code. For example:msiexec /qn /norestart /x [puppet.msi|<PRODUCT_CODE>]
-
Optional:
If you want to reinstall the agent on the node later, make sure you remove the
node's agent certificate from the primary server. To do this, on the primary
server run:
puppetserver ca clean --certname <AGENT_CERT_NAME>
Uninstall macOS agents
Use the command line to remove the agent from macOS nodes.
Uninstaller options
You can use these command line options to change the uninstaller's behavior.
-
-p
: Purge additional files. In addition to the software, users, logs,chron
jobs, and caches, 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
: Remove any databases created during installation. -
-h
: Display a help message. -
-n
: Run innoop
mode and show commands that would have run during uninstallation without actually running them. -
-y
: Don't ask to confirm uninstallation. Assuming the answer is yes.
sudo ./puppet-enterprise-uninstaller -d -p
For Windows systems, open an administrator command
prompt and run the command without sudo
.