diff options
author | Micah Anderson <micah@riseup.net> | 2010-11-27 09:04:43 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2010-11-28 13:08:46 -0500 |
commit | fa9033a68ac30fe1f7f5dfa8aa117259faf476a2 (patch) | |
tree | 29bc3065b13c39731cb36f171ce8c353ece0e89c /manifests | |
parent | 6b7d4a253cd2901074aa1bbb38f756fe9ac71aff (diff) |
add the possibility to clean the individual node client buckets.
this tidy is quite conservative, only cleaning files that are older than one
month. this seems long enough to be able to recover from a disaster, yet still
keep things from filling up the disk.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/base.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index 13f8c74..69a7568 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -4,6 +4,20 @@ class puppet::base { $puppet_majorversion = regsubst($puppetversion,'^(\d+\.\d+).*$','\1') + case $puppet_cleanup_clientbucket { + # if not set, don't do anything + '': {} + default: { + tidy { "/var/lib/puppet/clientbucket": + backup => false, + recurse => true, + rmdirs => true, + type => mtime, + age => "$puppet_cleanup_clientbucket"; + } + } + } + file { 'puppet_config': path => "$puppet_config", source => [ "puppet:///modules/site-puppet/client/${fqdn}/puppet.conf", |