Commit 889aa0e6 authored by Cool Fire's avatar Cool Fire

Add cron job to clean up puppet agent clientbucket cached files

parent 4518e961
Pipeline #2306 passed with stages
in 4 minutes and 31 seconds
......@@ -22,6 +22,15 @@ class profile::base::puppetagent(
minute => [$offset, $offset + 30],
}
cron { 'clientbucket_cache_cleanup':
command => '/usr/bin/find /opt/puppetlabs/puppet/cache/clientbucket/ -type f -mtime +45 -atime +45 -delete',
user => 'root',
month => '*',
monthday => '1',
hour => '4',
minute => '0',
}
service { ['puppet', 'mcollective']:
ensure => stopped,
enable => false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment