summaryrefslogtreecommitdiff
path: root/manifests/logrotate/centos.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/logrotate/centos.pp')
-rw-r--r--manifests/logrotate/centos.pp1
1 files changed, 1 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"',
}
}