system-config/modules/tmpreaper/manifests/init.pp
Matthew Wagoner 5812510ea7 Clean up of minor puppet-lint warnings.
Mostly documentation and parameterised class parameter complaints.

Change-Id: Idbfd348a5befb041ce6eb36f9c6b195fc0c6799f
Reviewed-on: https://review.openstack.org/16685
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-11-23 21:41:37 +00:00

36 lines
760 B
Puppet

# == Class: tmpreaper
#
class tmpreaper() {
package { 'tmpreaper':
ensure => present,
}
file { '/etc/cron.daily/tmpreaper':
ensure => absent,
}
file { '/usr/local/bin/tmpreaper.sh':
ensure => present,
owner => 'root',
group => 'root',
mode => '0755',
source => 'puppet:///modules/tmpreaper/tmpreaper.sh',
}
file { '/etc/tmpreaper.conf':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/tmpreaper/tmpreaper.conf',
}
cron { 'tmpreaper':
user => 'root',
minute => '42',
hour => '*/6',
command => 'sleep $((RANDOM\%60+60)) && /usr/local/bin/tmpreaper.sh',
require => File['/usr/local/bin/tmpreaper.sh'],
}
}