summaryrefslogtreecommitdiff
path: root/manifests/logrotate/centos/vhosts.pp
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-06-09 11:13:19 +0200
committerMarcel Haerry <haerry@puzzle.ch>2009-06-09 11:13:19 +0200
commit11499b9d5cb3f752d31bef683153e82ec02860e7 (patch)
treef36a884f71f3497aca286576d9ea873c6e6c7033 /manifests/logrotate/centos/vhosts.pp
parentcb45fccb3e3ff37b06393784972751163cd7b6a3 (diff)
parent1a91a29e74c42acf740bfb6d0fa391674c1953bf (diff)
Merge commit 'immerda/master' into development
Diffstat (limited to 'manifests/logrotate/centos/vhosts.pp')
-rw-r--r--manifests/logrotate/centos/vhosts.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/logrotate/centos/vhosts.pp b/manifests/logrotate/centos/vhosts.pp
new file mode 100644
index 0000000..941f50d
--- /dev/null
+++ b/manifests/logrotate/centos/vhosts.pp
@@ -0,0 +1,10 @@
+class apache::logrotate::centos::vhosts inherits 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]',
+ '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' ],
+ }
+}