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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user