diff options
-rw-r--r-- | manifests/cron/base.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp index c69b33f..966aea7 100644 --- a/manifests/cron/base.pp +++ b/manifests/cron/base.pp @@ -2,7 +2,10 @@ class puppet::cron::base inherits puppet::base { Service['puppet']{ - ensure => stopped, enable => false, } + exec{'stop_puppet': + command => 'kill `cat /var/run/puppet/puppetd.pid`', + onlyif => 'test -f test -f /var/run/puppet/puppetd.pid', + } } |