Set the deactivated node retention time
Use the node-purge-ttl
parameter to set the length of time before
PE automatically removes deactivated or expired nodes.
Once the time limit passes, the nodes and their relevant facts, catalogs, and reports are
only removed from PuppetDB. Agent certificates on the
Certificate Authority (CA) server are untouched.
- In the PE console, navigate to Node groups > PE Infrastructure > PE PuppetDB.
- On the Classes tab, find the
puppet_enterprise::profile::puppetdb
class. - Add the
node_purge_ttl
parameter, and set the value to a string representing the desired retention time. Specify a number along with one of the following suffixes:- Days:
d
- Hours:
h
- Minutes:
m
- Seconds:
s
- Milliseconds:
ms
For example, to set the purge time to 14 days, set the value to
14d
. For example:puppet_enterprise::profile::puppetdb::node_purge_ttl: '14d'
- Days:
- Click Add parameter and commit changes.
- On the nodes hosting your primary server and PE
console, run Puppet.There are several ways to Run Puppet on demand.