From e8291a62cfddc87023a63d00f51f9309d1699595 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 25 Feb 2012 15:31:30 +0100 Subject: add only if to workaround puppet bug #12830 --- manifests/logrotate/centos/vhosts.pp | 1 + 1 file changed, 1 insertion(+) (limited to 'manifests/logrotate/centos/vhosts.pp') diff --git a/manifests/logrotate/centos/vhosts.pp b/manifests/logrotate/centos/vhosts.pp index 941f50d..1cde2f3 100644 --- a/manifests/logrotate/centos/vhosts.pp +++ b/manifests/logrotate/centos/vhosts.pp @@ -6,5 +6,6 @@ class apache::logrotate::centos::vhosts inherits apache::logrotate::centos { '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' ], + onlyif => 'get /files/etc/logrotate.d/httpd/rule/file[2] != "/var/www/vhosts/*/logs/*log"', } } -- cgit v1.2.3 From 943744b559007d994f134f675287a241cafe3f9c Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 15 Dec 2012 17:23:29 +0100 Subject: fix a few relationships --- manifests/logrotate/centos/vhosts.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/logrotate/centos/vhosts.pp') diff --git a/manifests/logrotate/centos/vhosts.pp b/manifests/logrotate/centos/vhosts.pp index 1cde2f3..b1159a1 100644 --- a/manifests/logrotate/centos/vhosts.pp +++ b/manifests/logrotate/centos/vhosts.pp @@ -1,5 +1,5 @@ +# add vhost folders to logrotation 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]', -- cgit v1.2.3