summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base.pp14
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",