summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
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',
+ }
+
}