puppet: Use exec's 'creates' parameter instead of onlyif

(imported from commit 94b5e76ca5119443f143e4af5c86e3c16c99dc1e)
This commit is contained in:
Zev Benjamin
2013-02-07 18:03:07 -05:00
parent a7ca48e2ff
commit 3e7a6619bd
3 changed files with 7 additions and 6 deletions

View File

@@ -52,5 +52,6 @@ class humbug::postgres {
exec { "disable_logrotate":
command => "/usr/bin/dpkg-divert --rename --divert /etc/logrotate.d/postgresql-common.disabled --add /etc/logrotate.d/postgresql-common",
creates => '/etc/logrotate.d/postgresql-common.disabled',
}
}