summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-11-07 18:08:06 +0000
committermh <mh@immerda.ch>2008-11-07 18:08:06 +0000
commit31ed3154e51f2eb9c6200eac68231463c64720c9 (patch)
treea66cae7506acda4d4cfbf835493fad3f50f50617 /manifests/init.pp
parenta33e779091a16b70f627a7ccc6f0efc67718c2b3 (diff)
made path more default
introduced logrotating for apache
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp19
1 files changed, 18 insertions, 1 deletions
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',
+ }
+
}