summaryrefslogtreecommitdiff
path: root/manifests/logrotate
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-02-25 15:31:30 +0100
committermh <mh@immerda.ch>2012-02-25 15:31:30 +0100
commite8291a62cfddc87023a63d00f51f9309d1699595 (patch)
tree3ecfb54cd62ab819b4dd8563d780d087f3ff3e67 /manifests/logrotate
parent6094ea451f4adf18c36bbef5cdb580aaf9b21542 (diff)
add only if to workaround puppet bug #12830
Diffstat (limited to 'manifests/logrotate')
-rw-r--r--manifests/logrotate/centos.pp1
-rw-r--r--manifests/logrotate/centos/vhosts.pp1
2 files changed, 2 insertions, 0 deletions
diff --git a/manifests/logrotate/centos.pp b/manifests/logrotate/centos.pp
index 6571ada..593f692 100644
--- a/manifests/logrotate/centos.pp
+++ b/manifests/logrotate/centos.pp
@@ -4,5 +4,6 @@ class apache::logrotate::centos {
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"',
}
}
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"',
}
}