cron can also be disabled
This commit is contained in:
@@ -8,7 +8,8 @@ class puppet::agent (
|
||||
$run_if_ipmatch = undef,
|
||||
$maxsleep = '3200',
|
||||
$puppet_master = undef,
|
||||
$environment = gsub($::domain,'.lan', '')) {
|
||||
$cron = true,
|
||||
$environment = gsub($::domain, '.lan', '')) {
|
||||
case $::kernel {
|
||||
'Linux' : {
|
||||
$puppetpkgs = ['puppet', 'puppet-common']
|
||||
@@ -44,11 +45,14 @@ class puppet::agent (
|
||||
ensure => $daemonize,
|
||||
}
|
||||
$cron_real = $daemonize ? {
|
||||
false => 'present',
|
||||
false => $cron ? {
|
||||
true => 'present',
|
||||
default => 'absent',
|
||||
},
|
||||
true => 'absent',
|
||||
default => $ensure,
|
||||
}
|
||||
|
||||
|
||||
cron { 'puppetrun':
|
||||
command => '/usr/local/sbin/puppetd_run.sh',
|
||||
user => 'root',
|
||||
@@ -81,6 +85,7 @@ class puppet::agent (
|
||||
setting => 'splay',
|
||||
value => $maxsleep;
|
||||
}
|
||||
|
||||
ini_setting { 'puppet-agent-env':
|
||||
setting => 'environment',
|
||||
value => $environment;
|
||||
|
||||
Reference in New Issue
Block a user