fix: enable dynamic/tsig updates

- add eyaml to hiera.yaml
- consolidate all paths into single tree
- change to new profiles::dns::client wrapper
- change to new profiles::dns::record wrapper
- change to use concat method to build zone file
This commit is contained in:
2023-11-13 22:17:59 +11:00
parent 4b0b2b1ed0
commit c996c9b7e3
11 changed files with 149 additions and 37 deletions
+8
View File
@@ -3,6 +3,7 @@ class profiles::dns::server (
Hash $acls = {},
Hash $zones = {},
Hash $views = {},
Hash $keys = {},
Array $forwarders = ['8.8.8.8', '1.1.1.1'],
Boolean $dnssec = true,
){
@@ -21,6 +22,13 @@ class profiles::dns::server (
version => 'Controlled by Puppet',
}
# if keys, import them
$keys.each | $name, $data | {
bind::key { $name:
* => $data,
}
}
# if acls, import them
$acls.each | $name, $data | {
bind::acl { $name: