Initial version of apache::logrotate class.

This commit is contained in:
Timo Mkinen 2009-10-28 00:35:33 +02:00
parent d82884fc87
commit 4621dcf24a
2 changed files with 102 additions and 0 deletions

24
apache/manifests/init.pp Normal file
View file

@ -0,0 +1,24 @@
# Install www logrotate script and cron job.
#
class apache::logrotate {
file { "/usr/local/sbin/www-logrotate.sh":
ensure => present,
source => "puppet:///apache/www-logrotate.sh",
mode => 0755,
owner => root,
group => root,
}
cron { "www-logrotate":
ensure => present,
command => "/usr/local/sbin/www-logrotate.sh",
user => "root",
hour => "0",
minute => "0",
weekday => "1",
require => File["/usr/local/sbin/www-logrotate.sh"],
}
}