October 2011
Intermediate to advanced
300 pages
5h 51m
English
We all have to clean house once in a while. Puppet's tidy resource will help you clean up old or out-of-date files, reducing disk usage. For example, if you have Puppet reporting enabled as described in the section on generating reports, you might want to regularly delete old report files.
tidy { "/var/lib/puppet/reports":
age => "1w",
recurse => true,
}# puppet agent -–test info: Retrieving plugin info: Caching catalog for cookbook.bitfieldconsulting.com notice: /Stage[main]//Node[cookbook]/Tidy[/var/lib/puppet/reports]: Tidying File[/var/lib/puppet/reports/cookbook.bitfieldconsulting.com/201102241546.yaml] notice: /Stage[main]//Node[cookbook]/Tidy[/var/lib/puppet/reports]: ...
Read now
Unlock full access