Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit f7eedf8

Browse files
author
Maxime VISONNEAU
committed
added the noop variable configuration for the agent
1 parent fde85b8 commit f7eedf8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

manifests/agent.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
# The runinterval variable in puppet.conf
6161
# Default: 1800
6262
#
63+
# [*noop*]
64+
# The noop variable in puppet.conf
65+
# Default: false
66+
#
6367
# [*method*]
6468
# The mechanism for performing puppet runs.
6569
# Supported methods: [cron, service, only_service, none]
@@ -96,6 +100,7 @@
96100
$configtimeout = 360,
97101
$usecacheonfailure = true,
98102
$runinterval = undef,
103+
$noop = false,
99104
$method = $puppet::params::default_method,
100105
$manage_package = true,
101106
$package = $puppet::params::agent_package,
@@ -108,6 +113,7 @@
108113
validate_bool($splay)
109114
validate_bool($usecacheonfailure)
110115
validate_bool($manage_package)
116+
validate_bool($noop)
111117

112118
include puppet
113119

manifests/agent/config.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,12 @@
8484
value => $puppet::agent::runinterval,
8585
}
8686
}
87+
88+
if ! $puppet::agent::noop
89+
{
90+
ini_setting { 'noop':
91+
setting => 'noop',
92+
value => $puppet::agent::noop,
93+
}
94+
}
8795
}

0 commit comments

Comments
 (0)