From a15d322a91e6c438f65a23b4fe5fb8d63c32def0 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 4 Feb 2010 17:44:26 +0100 Subject: Allowes puppet::cron also on the puppetmaster server --- manifests/cron/base.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'manifests/cron') diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp index 7244e02..5fc55d2 100644 --- a/manifests/cron/base.pp +++ b/manifests/cron/base.pp @@ -4,9 +4,15 @@ class puppet::cron::base inherits puppet::base { Service['puppet']{ enable => false, } - File['puppet_config']{ - notify => undef + + if defined (puppet::puppetmaster) {} + else { + File['puppet_config']{ + notify => undef + } } + + case $operatingsystem { debian,openbsd,ubuntu: { #it's already disabled -- cgit v1.2.3