summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-10 18:26:55 -0300
committermh <mh@immerda.ch>2012-06-10 18:26:55 -0300
commita81d6c371eef25a505e16cb89cb6c7e5a124e7fc (patch)
treea4a8d2ba1be890ffff363d4cb75aeb94f921e8ea
parenta088356e96de56839612363a0b52f3687733431a (diff)
stop the puppet service by default on cron
-rw-r--r--manifests/cron.pp1
-rw-r--r--manifests/cron/base.pp2
2 files changed, 2 insertions, 1 deletions
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']{