Initial version of apache::logrotate class.
This commit is contained in:
parent
d82884fc87
commit
4621dcf24a
2 changed files with 102 additions and 0 deletions
24
apache/manifests/init.pp
Normal file
24
apache/manifests/init.pp
Normal 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"],
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue