Merge pull request #111 from makeacode/server_clause
support creating server clauses
This commit is contained in:
@@ -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",
|
||||
]:
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# ex: syntax=puppet si ts=4 sw=4 et
|
||||
|
||||
define bind::server (
|
||||
$bogus = false,
|
||||
$edns = true,
|
||||
$key = undef,
|
||||
$transfers = undef,
|
||||
) {
|
||||
include bind
|
||||
|
||||
concat::fragment { "bind-server-${name}":
|
||||
order => 10,
|
||||
target => "${::bind::confdir}/servers.conf",
|
||||
content => template('bind/server.erb'),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user