Skip to content

Commit c18c2a9

Browse files
bastelfreakb4ldr
authored andcommitted
Introduce unbound_version parameter
The version of the installed unbound instance. Defaults to the fact, but you can overwrite it. this reduces the initial puppet runs from two to one (because currently during the first run, the version is an empty string and it defaults to `0a`. The module hides unbound.conf options that are introduced in later versions.
1 parent 68bf8f5 commit c18c2a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manifests/init.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# File path to the root-hints. Set to 'builtin' to remove root-hint option from unbound.conf and use built-in hints.
77
# @param hints_file_content
88
# Contents of the root hints file, if it's not remotely fetched.
9+
# @param unbound_version
10+
# the version of the installed unbound instance. defaults to the fact, but you can overwrite it. this reduces the initial puppet runs from two to one
911
class unbound (
1012
Boolean $manage_service = true,
1113
Integer[0,5] $verbosity = 1,
@@ -212,6 +214,7 @@
212214
Unbound::Hints_file $hints_file = "${confdir}/root.hints",
213215
Optional[String[1]] $hints_file_content = undef,
214216
Hash[String[1], Unbound::Rpz] $rpzs = {},
217+
Optional[String[1]] $unbound_version = $facts['unbound_version'],
215218
) {
216219
$_base_dirs = [$confdir, $conf_d, $keys_d, $runtime_dir]
217220
$_piddir = if $pidfile { dirname($pidfile) } else { undef }

0 commit comments

Comments
 (0)