diff options
author | mh <mh@immerda.ch> | 2009-06-03 22:00:01 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-06-03 22:00:01 +0200 |
commit | 1a91a29e74c42acf740bfb6d0fa391674c1953bf (patch) | |
tree | e1e00360cf5ec98e12b02ce895b7d8573dedc75e /manifests/logrotate/centos.pp | |
parent | 49e7edc75bf219bf18fa0e6bd8da016bb781696b (diff) |
introduced logrotate only if we have vhosts
otherwise we get nasty logrotate errors
introduced a first logrotate naming scheme. the openbsd
logrotation should be integrated in that one as well.
Diffstat (limited to 'manifests/logrotate/centos.pp')
-rw-r--r-- | manifests/logrotate/centos.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/logrotate/centos.pp b/manifests/logrotate/centos.pp new file mode 100644 index 0000000..6571ada --- /dev/null +++ b/manifests/logrotate/centos.pp @@ -0,0 +1,8 @@ +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' ], + } +} |