From a81d6c371eef25a505e16cb89cb6c7e5a124e7fc Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 10 Jun 2012 18:26:55 -0300 Subject: stop the puppet service by default on cron --- manifests/cron.pp | 1 + manifests/cron/base.pp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'manifests') diff --git a/manifests/cron.pp b/manifests/cron.pp index 5e3cc64..f8e9beb 100644 --- a/manifests/cron.pp +++ b/manifests/cron.pp @@ -1,5 +1,6 @@ class puppet::cron( $cron_time, + $stop_service = hiera('puppet_stop_service',true), $config = hiera('puppet_config','/etc/puppet/puppet.conf'), $http_compression = hiera('puppet_http_compression',false), $cleanup_clientbucket = hiera('puppet_cleanup_clientbucket',false), diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp index 42222d6..e12b5eb 100644 --- a/manifests/cron/base.pp +++ b/manifests/cron/base.pp @@ -25,7 +25,7 @@ class puppet::cron::base inherits puppet::base { enable => false, } - if $stop_service == true { + if $puppet::cron::stop_service == true { $puppet_majorversion = regsubst($::puppetversion,'^(\d+\.\d+).*$','\1') if $puppet_majorversion == '2.6' { Service['puppet']{ -- cgit v1.2.3