feat: add dns resolver/master classes

- define resolver and master dns server
- export A and PTR records from dns clients
- collect exported resources for master
- create hiera structure for acls, zones and views
This commit is contained in:
2023-11-11 23:00:55 +11:00
parent 1ff4611318
commit 76b54fc59d
13 changed files with 231 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
# profiles::dns::master authoritative service
class profiles::dns::master (
Hash $acls = {},
Hash $zones = {},
Hash $views = {},
Hash[
String,
String
] $tags = {},
Boolean $dnssec = false,
){
class {'profiles::dns::server':
acls => $acls,
zones => $zones,
views => $views,
forwarders => [],
dnssec => $dnssec,
}
# collect records
$tags.each | String $key, String $tag_value | {
if $tag_value != undef {
Resource_record <<| tag == $tag_value |>>
}
}
}