From 49e7edc75bf219bf18fa0e6bd8da016bb781696b Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 2 Jun 2009 03:14:46 +0200 Subject: added vhosts folders to logrotation --- manifests/centos.pp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'manifests/centos.pp') 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': } } -- cgit v1.2.3