From bcf5aa9f77f6e529a0d4148419119fee60c0ea5c Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 30 Oct 2009 20:46:34 +0100 Subject: set status to false where it isn't already false --- manifests/cron/base.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp index 42f6cc5..76e1099 100644 --- a/manifests/cron/base.pp +++ b/manifests/cron/base.pp @@ -3,7 +3,16 @@ class puppet::cron::base inherits puppet::base { Service['puppet']{ enable => false, - hasstatus => false, + } + case $operatingsystem { + debian,openbsd: { + #it's already disabled + } + default: { + Service['puppet']{ + hasstatus => false, + } + } } exec{'stop_puppet': command => 'kill `cat /var/run/puppet/puppetd.pid`', -- cgit v1.2.3