summaryrefslogtreecommitdiff
path: root/manifests/centos.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-06-02 03:14:46 +0200
committermh <mh@immerda.ch>2009-06-02 03:14:46 +0200
commit49e7edc75bf219bf18fa0e6bd8da016bb781696b (patch)
treeaad5ea5177cb16b82c84bbba57a25ea679a6b086 /manifests/centos.pp
parentad5bdfc92d628d509d3d6a7e45065f05ab2a8a1b (diff)
added vhosts folders to logrotation
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': }
}