-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzone.conf.epp
101 lines (101 loc) · 2.47 KB
/
zone.conf.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<%- if $class { -%>
zone "<%= $zone_name %>" <%= $class %> {
<%- } else { -%>
zone "<%= $zone_name %>" {
<%- } -%>
<%- if $type { -%>
type <%= $type %>;
<%- } -%>
<%- if $in_view { -%>
in-view "<%= $in_view %>";
<%- } -%>
<%- if $type in [
'primary',
'master',
'hint',
'redirect',
'secondary',
'slave',
'mirror',
'stub',
'redirect',
] { -%>
<%- if $file { -%>
file "<%= $file %>";
<%- } elsif $zone_name == '.' { -%>
file "db.root";
<%- } else { -%>
file "db.<%= $zone_name %>";
<%- } -%>
<%- } -%>
<%- if $allow_transfer { -%>
allow-transfer {
<%- $allow_transfer.each |$address_match_list_element| { -%>
<%= $address_match_list_element -%>;
<%- } -%>
};
<%- } -%>
<%- if $allow_update { -%>
allow-update {
<%- $allow_update.each |$address_match_list_element| { -%>
<%= $address_match_list_element -%>;
<%- } -%>
};
<%- } -%>
<%- if $also_notify { -%>
also-notify {
<%- $also_notify.each |$address_match_list_element| { -%>
<%= $address_match_list_element -%>;
<%- } -%>
};
<%- } -%>
<%- if $auto_dnssec { -%>
auto-dnssec <%= $auto_dnssec %>;
<%- } -%>
<%- if $inline_signing { -%>
inline-signing <%= $inline_signing %>;
<%- } -%>
<%- if $key_directory { -%>
key-directory "<%= $key_directory %>";
<%- } -%>
<%- if $forward { -%>
forward <%= $forward %>;
<%- } -%>
<%- if $forwarders { -%>
forwarders {
<%- $forwarders.each |$forwarder| { -%>
<%= $forwarder %>;
<%- } -%>
};
<%- } -%>
<%- if $primaries { -%>
primaries {
<%- $primaries.each |$primary| { -%>
<%= $primary %>;
<%- } -%>
};
<%- } -%>
<%- if $masters { -%>
masters {
<%- $masters.each |$master| { -%>
<%= $master %>;
<%- } -%>
};
<%- } -%>
<%- if $serial_update_method { -%>
serial-update-method <%= $serial_update_method %>;
<%- } -%>
<%- if $update_policy {
if 'local' in $update_policy { -%>
update-policy local;
<%- }
$update_policy_rules = $update_policy - 'local'
unless $update_policy_rules.empty { -%>
update-policy {
<%- $update_policy_rules.each |$rule| { -%>
<%= $rule['permission'] %> <%= $rule['identity'] %> <%= $rule['ruletype'] %> <%= $rule['name'] %> <%= $rule['types'] %>;
<%- } -%>
};
<%- } -%>
<%- } -%>
};