-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
db.empty.epp
32 lines (31 loc) · 1.43 KB
/
db.empty.epp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<%- |
# SPDX-License-Identifier: AGPL-3.0-or-later
String[1] $ttl = $bind::zone_default_ttl,
Optional[String[1]] $soa_ttl = undef,
String[1] $mname = $bind::zone_default_mname,
String[1] $rname = $bind::zone_default_rname,
Integer[0] $serial = $bind::zone_default_serial,
String[1] $refresh = $bind::zone_default_refresh,
String[1] $retry = $bind::zone_default_retry,
String[1] $expire = $bind::zone_default_expire,
String[1] $negative_caching_ttl = $bind::zone_default_negative_caching_ttl,
Optional[Variant[Array[Stdlib::IP::Address::V6], Stdlib::IP::Address::V6]] $ns_address = $facts['networking']['ip6'],
Optional[Variant[Array[Stdlib::IP::Address::V4], Stdlib::IP::Address::V4]] $ns_legacy_address = $facts['networking']['ip'],
| -%>
$TTL <%= $ttl %>
@ <%= $soa_ttl %> SOA <%= $mname %> <%= $rname %> <%= $serial %> <%= $refresh %> <%= $retry %> <%= $expire %> <%= $negative_caching_ttl %>
@ NS <%= $mname %>
<%- if $ns_address =~ Stdlib::IP::Address::V6 { -%>
<%= $mname %> AAAA <%= $ns_address %>
<%- } elsif $ns_address =~ Array[Stdlib::IP::Address::V6] { -%>
<%- $ns_address.each |$addr| { -%>
<%= $mname %> AAAA <%= $addr %>
<%- } -%>
<%- } -%>
<%- if $ns_legacy_address =~ Stdlib::IP::Address::V4 { -%>
<%= $mname %> A <%= $ns_legacy_address %>
<%- } elsif $ns_legacy_address =~ Array[Stdlib::IP::Address::V4] { -%>
<%- $ns_legacy_address.each |$addr| { -%>
<%= $mname %> A <%= $addr %>
<%- } -%>
<%- } -%>