|
13 | 13 | # Can be defined also by the (top scope) variable $pdns_recursor_manage_munin
|
14 | 14 | #
|
15 | 15 | # [*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 |
17 | 17 | # the latest upstream-released versions.
|
18 | 18 | # Can be defined also by the (top scope) variable $pdns_recursor_manage_repo
|
19 | 19 | #
|
|
137 | 137 | # [*noops*]
|
138 | 138 | # Set noop metaparameter to true for all the resources managed by the module.
|
139 | 139 | # 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 |
141 | 141 | #
|
142 | 142 | # Default class params - As defined in pdns_recursor::params.
|
143 | 143 | # Note that these variables are mostly defined and used in the module itself,
|
|
277 | 277 | $bool_firewall=any2bool($firewall)
|
278 | 278 | $bool_debug=any2bool($debug)
|
279 | 279 | $bool_audit_only=any2bool($audit_only)
|
280 |
| - $bool_noops=any2bool($noops) |
281 | 280 |
|
282 | 281 | $local_address = [ '127.0.0.1', $firewall_dst ]
|
283 | 282 |
|
|
363 | 362 | ### Managed resources
|
364 | 363 | package { $pdns_recursor::package:
|
365 | 364 | ensure => $pdns_recursor::manage_package,
|
366 |
| - noop => $pdns_recursor::bool_noops, |
| 365 | + noop => $pdns_recursor::noops, |
367 | 366 | }
|
368 | 367 |
|
369 | 368 | service { 'pdns_recursor':
|
|
373 | 372 | hasstatus => $pdns_recursor::service_status,
|
374 | 373 | pattern => $pdns_recursor::process,
|
375 | 374 | require => Package[$pdns_recursor::package],
|
376 |
| - noop => $pdns_recursor::bool_noops, |
| 375 | + noop => $pdns_recursor::noops, |
377 | 376 | }
|
378 | 377 |
|
379 | 378 | file { 'pdns_recursor.conf':
|
|
388 | 387 | content => $pdns_recursor::manage_file_content,
|
389 | 388 | replace => $pdns_recursor::manage_file_replace,
|
390 | 389 | audit => $pdns_recursor::manage_audit,
|
391 |
| - noop => $pdns_recursor::bool_noops, |
| 390 | + noop => $pdns_recursor::noops, |
392 | 391 | }
|
393 | 392 |
|
394 | 393 | # The whole pdns_recursor configuration directory can be recursively overriden
|
|
404 | 403 | force => $pdns_recursor::bool_source_dir_purge,
|
405 | 404 | replace => $pdns_recursor::manage_file_replace,
|
406 | 405 | audit => $pdns_recursor::manage_audit,
|
407 |
| - noop => $pdns_recursor::bool_noops, |
| 406 | + noop => $pdns_recursor::noops, |
408 | 407 | }
|
409 | 408 | }
|
410 | 409 |
|
|
422 | 421 | ensure => $pdns_recursor::manage_file,
|
423 | 422 | variables => $classvars,
|
424 | 423 | helper => $pdns_recursor::puppi_helper,
|
425 |
| - noop => $pdns_recursor::bool_noops, |
| 424 | + noop => $pdns_recursor::noops, |
426 | 425 | }
|
427 | 426 | }
|
428 | 427 |
|
|
436 | 435 | target => $pdns_recursor::monitor_target,
|
437 | 436 | tool => $pdns_recursor::monitor_tool,
|
438 | 437 | enable => $pdns_recursor::manage_monitor,
|
439 |
| - noop => $pdns_recursor::bool_noops, |
| 438 | + noop => $pdns_recursor::noops, |
440 | 439 | }
|
441 | 440 | }
|
442 | 441 | if $pdns_recursor::service != '' {
|
|
448 | 447 | argument => $pdns_recursor::process_args,
|
449 | 448 | tool => $pdns_recursor::monitor_tool,
|
450 | 449 | enable => $pdns_recursor::manage_monitor,
|
451 |
| - noop => $pdns_recursor::bool_noops, |
| 450 | + noop => $pdns_recursor::noops, |
452 | 451 | }
|
453 | 452 | }
|
454 | 453 | }
|
|
465 | 464 | direction => 'input',
|
466 | 465 | tool => $pdns_recursor::firewall_tool,
|
467 | 466 | enable => $pdns_recursor::manage_firewall,
|
468 |
| - noop => $pdns_recursor::bool_noops, |
| 467 | + noop => $pdns_recursor::noops, |
469 | 468 | }
|
470 | 469 | }
|
471 | 470 |
|
|
479 | 478 | owner => 'root',
|
480 | 479 | group => 'root',
|
481 | 480 | 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, |
483 | 482 | }
|
484 | 483 | }
|
485 | 484 |
|
|
0 commit comments