diff options
-rw-r--r-- | manifests/cron.pp | 1 | ||||
-rw-r--r-- | manifests/cron/base.pp | 2 |
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']{ |