support creating server clauses

This commit is contained in:
makeacode
2017-02-01 23:44:15 -05:00
parent e562c613c9
commit ebfa2455a1
4 changed files with 29 additions and 0 deletions
+1
View File
@@ -78,6 +78,7 @@ class bind (
"${confdir}/acls.conf",
"${confdir}/keys.conf",
"${confdir}/views.conf",
"${confdir}/servers.conf",
"${confdir}/view-mappings.txt",
"${confdir}/domain-mappings.txt",
]:
+17
View File
@@ -0,0 +1,17 @@
# ex: syntax=puppet si ts=4 sw=4 et
define bind::server (
$bogus = false,
$edns = true,
$key = undef,
$transfers = undef,
$order = '10',
) {
include bind
concat::fragment { "bind-server-${name}":
order => $order,
target => "${::bind::confdir}/servers.conf",
content => template('bind/server.erb'),
}
}