diff options
author | Micah Anderson <micah@riseup.net> | 2013-12-16 17:29:02 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-12-16 17:29:02 -0500 |
commit | 15757eb2334e614bc90c8d5235834352f72261e4 (patch) | |
tree | f3a3783b50d782b0d8ca76a7884c64e3cbc08dd9 /manifests/logrotate/centos.pp | |
parent | 6158f2ad0cb07159b922b6036013a7be1e4dbab5 (diff) | |
parent | 88dc913a5da951b1a261b6cc6d9767aaf641287d (diff) |
Merge branch 'master' of labs.riseup.net:module_apache into riseup
Diffstat (limited to 'manifests/logrotate/centos.pp')
-rw-r--r-- | manifests/logrotate/centos.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/logrotate/centos.pp b/manifests/logrotate/centos.pp index 6571ada..4381205 100644 --- a/manifests/logrotate/centos.pp +++ b/manifests/logrotate/centos.pp @@ -1,8 +1,10 @@ +# add vhost folders to logrotation class apache::logrotate::centos { - # add vhost folders to logrotation augeas{'logrotate_httpd': changes => [ 'rm /files/etc/logrotate.d/httpd/rule/file', 'ins file before /files/etc/logrotate.d/httpd/rule/*[1]', 'set /files/etc/logrotate.d/httpd/rule/file[1] /var/log/httpd/*log' ], + onlyif => 'get /files/etc/logrotate.d/httpd/rule/file[1] != "/var/log/httpd/*log"', + require => Package['apache'], } } |