Skip to content

Commit 959723e

Browse files
committed
Fix for noop override
1 parent 6e93f21 commit 959723e

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

manifests/init.pp

+11-12
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Can be defined also by the (top scope) variable $pdns_recursor_manage_munin
1414
#
1515
# [*manage_repo*]
16-
# If set to true (default false), a third-party yum/apt repository containing
16+
# If set to true (default false), a third-party yum/apt repository containing
1717
# the latest upstream-released versions.
1818
# Can be defined also by the (top scope) variable $pdns_recursor_manage_repo
1919
#
@@ -137,7 +137,7 @@
137137
# [*noops*]
138138
# Set noop metaparameter to true for all the resources managed by the module.
139139
# Basically you can run a dryrun for this specific module if you set
140-
# this to true. Default: false
140+
# this to true. Default: undef
141141
#
142142
# Default class params - As defined in pdns_recursor::params.
143143
# Note that these variables are mostly defined and used in the module itself,
@@ -277,7 +277,6 @@
277277
$bool_firewall=any2bool($firewall)
278278
$bool_debug=any2bool($debug)
279279
$bool_audit_only=any2bool($audit_only)
280-
$bool_noops=any2bool($noops)
281280

282281
$local_address = [ '127.0.0.1', $firewall_dst ]
283282

@@ -363,7 +362,7 @@
363362
### Managed resources
364363
package { $pdns_recursor::package:
365364
ensure => $pdns_recursor::manage_package,
366-
noop => $pdns_recursor::bool_noops,
365+
noop => $pdns_recursor::noops,
367366
}
368367

369368
service { 'pdns_recursor':
@@ -373,7 +372,7 @@
373372
hasstatus => $pdns_recursor::service_status,
374373
pattern => $pdns_recursor::process,
375374
require => Package[$pdns_recursor::package],
376-
noop => $pdns_recursor::bool_noops,
375+
noop => $pdns_recursor::noops,
377376
}
378377

379378
file { 'pdns_recursor.conf':
@@ -388,7 +387,7 @@
388387
content => $pdns_recursor::manage_file_content,
389388
replace => $pdns_recursor::manage_file_replace,
390389
audit => $pdns_recursor::manage_audit,
391-
noop => $pdns_recursor::bool_noops,
390+
noop => $pdns_recursor::noops,
392391
}
393392

394393
# The whole pdns_recursor configuration directory can be recursively overriden
@@ -404,7 +403,7 @@
404403
force => $pdns_recursor::bool_source_dir_purge,
405404
replace => $pdns_recursor::manage_file_replace,
406405
audit => $pdns_recursor::manage_audit,
407-
noop => $pdns_recursor::bool_noops,
406+
noop => $pdns_recursor::noops,
408407
}
409408
}
410409

@@ -422,7 +421,7 @@
422421
ensure => $pdns_recursor::manage_file,
423422
variables => $classvars,
424423
helper => $pdns_recursor::puppi_helper,
425-
noop => $pdns_recursor::bool_noops,
424+
noop => $pdns_recursor::noops,
426425
}
427426
}
428427

@@ -436,7 +435,7 @@
436435
target => $pdns_recursor::monitor_target,
437436
tool => $pdns_recursor::monitor_tool,
438437
enable => $pdns_recursor::manage_monitor,
439-
noop => $pdns_recursor::bool_noops,
438+
noop => $pdns_recursor::noops,
440439
}
441440
}
442441
if $pdns_recursor::service != '' {
@@ -448,7 +447,7 @@
448447
argument => $pdns_recursor::process_args,
449448
tool => $pdns_recursor::monitor_tool,
450449
enable => $pdns_recursor::manage_monitor,
451-
noop => $pdns_recursor::bool_noops,
450+
noop => $pdns_recursor::noops,
452451
}
453452
}
454453
}
@@ -465,7 +464,7 @@
465464
direction => 'input',
466465
tool => $pdns_recursor::firewall_tool,
467466
enable => $pdns_recursor::manage_firewall,
468-
noop => $pdns_recursor::bool_noops,
467+
noop => $pdns_recursor::noops,
469468
}
470469
}
471470

@@ -479,7 +478,7 @@
479478
owner => 'root',
480479
group => 'root',
481480
content => inline_template('<%= scope.to_hash.reject { |k,v| k.to_s =~ /(uptime.*|path|timestamp|free|.*password.*|.*psk.*|.*key)/ }.to_yaml %>'),
482-
noop => $pdns_recursor::bool_noops,
481+
noop => $pdns_recursor::noops,
483482
}
484483
}
485484

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@
113113
$puppi_helper = 'standard'
114114
$debug = false
115115
$audit_only = false
116-
$noops = false
116+
$noops = undef
117117

118118
}

0 commit comments

Comments
 (0)