From bfe861221f706cc488c8a247b6d494d07d79f465 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 15 Sep 2010 22:41:31 +0200 Subject: fix some issues with cron enabling/service disabling --- manifests/cron/base.pp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'manifests/cron/base.pp') diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp index b30b5b3..acef55e 100644 --- a/manifests/cron/base.pp +++ b/manifests/cron/base.pp @@ -18,14 +18,15 @@ class puppet::cron::base inherits puppet::base { } else { Service['puppet']{ hasstatus => false, + pattern => 'puppetd', + } + # this works only on < 2.6 + exec{'stop_puppet': + command => 'kill `cat /var/run/puppet/puppetd.pid`', + onlyif => 'test -f /var/run/puppet/puppetd.pid', + require => Service['puppet'], } } } } - # this works only on < 2.6 - exec{'stop_puppet': - command => 'kill `cat /var/run/puppet/puppetd.pid`', - onlyif => 'test -f /var/run/puppet/puppetd.pid', - require => Service['puppet'], - } } -- cgit v1.2.3