From 31ed3154e51f2eb9c6200eac68231463c64720c9 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 7 Nov 2008 18:08:06 +0000 Subject: made path more default introduced logrotating for apache --- manifests/init.pp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 55caf49..b66be3d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -201,7 +201,7 @@ class apache::openbsd inherits apache::base { file{'/opt/bin/restart_apache.sh': - source => "puppet://$server/apache/openbsd/bin/restart_apache.sh", + source => "puppet://$server/apache/OpenBSD/bin/restart_apache.sh", require => File['/opt/bin'], owner => root, group => 0, mode => 0700; } @@ -214,4 +214,21 @@ class apache::openbsd inherits apache::base { start => 'apachectl start', stop => 'apachectl stop', } + + file{'/opt/bin/apache_logrotate.sh': + source => "puppet://$server/apache/OpenBSD/bin/apache_logrotate.sh", + require => File['/opt/bin'], + owner => root, group => 0, mode => 0700; + } + + cron { 'update_apache_logrotation': + command => '/bin/sh /opt/bin/apache_logrotate.sh > /etc/newsyslog_apache.conf', + minute => '1', + hour => '1', + } + cron { 'run_apache_logrotation': + command => '/usr/bin/newsyslog -f /etc/newsyslog_apache.conf > /dev/null', + minute => '10', + } + } -- cgit v1.2.3