diff options
author | mh <mh@immerda.ch> | 2012-12-15 17:23:29 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-12-15 17:23:29 +0100 |
commit | 943744b559007d994f134f675287a241cafe3f9c (patch) | |
tree | a3fd34d0c914d2014789271927aeda455b2a07d5 /manifests/logrotate | |
parent | aea2be9add8f751d968de1786e3a4b37568526a7 (diff) |
fix a few relationships
Diffstat (limited to 'manifests/logrotate')
-rw-r--r-- | manifests/logrotate/centos.pp | 5 | ||||
-rw-r--r-- | manifests/logrotate/centos/vhosts.pp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/manifests/logrotate/centos.pp b/manifests/logrotate/centos.pp index 593f692..4381205 100644 --- a/manifests/logrotate/centos.pp +++ b/manifests/logrotate/centos.pp @@ -1,9 +1,10 @@ +# add vhost folders to logrotation 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' ], - onlyif => 'get /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"', + require => Package['apache'], } } 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]', |