system-config/modules/tmpreaper/manifests/init.pp
Devananda van der Veen 4079d25387 refactor tmpreaper to separate module
fix bug 961697
 remove jenkins tmpreaper cron
 create tmpreaper module which can be included by any class
 for now, only jenkins_slave class actually includes it

Change-Id: I3388cbfb9b97c00cde8f4c2a2ebe60a4d76736d7
2012-04-02 13:06:29 -07:00

24 lines
546 B
Puppet

class tmpreaper() {
package { 'tmpreaper':
ensure => present,
}
file { 'tmpreaper-cron.daily':
name => '/etc/cron.daily/tmpreaper',
ensure => 'present',
owner => 'root',
group => 'root',
mode => 755,
source => 'puppet:///modules/tmpreaper/tmpreaper-cron.daily',
}
file { 'tmpreaper.conf':
name => '/etc/tmpreaper.conf',
ensure => 'present',
owner => 'root',
group => 'root',
mode => 644,
source => 'puppet:///modules/tmpreaper/tmpreaper.conf',
}
}