summaryrefslogtreecommitdiff
path: root/manifests/centos.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r--manifests/centos.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp
index 604a9ca..01d3ecb 100644
--- a/manifests/centos.pp
+++ b/manifests/centos.pp
@@ -35,6 +35,15 @@ class apache::centos inherits apache::package {
owner => root, group => 0, mode => 0644;
}
+ # add vhost folders to logrotation
+ augeas { "logrotate_httpd_vhosts":
+ changes => [ 'rm /files/etc/logrotate.d/httpd/rule/file',
+ 'ins file before /files/etc/logrotate.d/httpd/rule/*[1]',
+ 'ins file before /files/etc/logrotate.d/httpd/rule/*[1]',
+ 'set /files/etc/logrotate.d/httpd/rule/file[1] /var/log/httpd/*log',
+ 'set /files/etc/logrotate.d/httpd/rule/file[2] /var/www/vhosts/*/logs/*log' ],
+ }
+
apache::config::file{ 'welcome.conf': }
apache::config::file{ 'vhosts.conf': }
}