diff options
author | mh <mh@immerda.ch> | 2009-06-02 03:14:46 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-06-02 03:14:46 +0200 |
commit | 49e7edc75bf219bf18fa0e6bd8da016bb781696b (patch) | |
tree | aad5ea5177cb16b82c84bbba57a25ea679a6b086 /manifests | |
parent | ad5bdfc92d628d509d3d6a7e45065f05ab2a8a1b (diff) |
added vhosts folders to logrotation
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/centos.pp | 9 |
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': } } |