Created
September 17, 2013 18:46
-
-
Save jfromaniello/6598879 to your computer and use it in GitHub Desktop.
this is how I setup tmpreaper with puppet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class tmpreaper { | |
package { "tmpreaper": | |
ensure => installed, | |
} | |
cron { "reaptmp on reboot": | |
command => "/usr/sbin/tmpreaper -af 1h /tmp", | |
user => root, | |
special => "reboot", | |
require => Package['tmpreaper'], | |
} | |
cron { "reaptmp every hour": | |
command => "/usr/sbin/tmpreaper -af 1h /tmp", | |
user => root, | |
minute => [0, 30], | |
require => Package['tmpreaper'], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment