Skip to content

Commit beaf69c

Browse files
committed
Merge pull request thias#38 from dougneal/misc_fixes
Misc fixes
2 parents 96d4d70 + 5b4d9f7 commit beaf69c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

manifests/zone.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
fail("transfer_source may only be provided for bind::zone resources with zone_type 'slave' or 'stub'")
3131
}
3232

33-
unless !($allow_update != '' and ! $dynamic) {
34-
fail("allow_update may only be provided for bind::zone resources with dynamic set to true")
33+
unless !($allow_updates != '' and ! $dynamic) {
34+
fail("allow_updates may only be provided for bind::zone resources with dynamic set to true")
3535
}
3636

3737
unless !($dnssec and ! $dynamic) {

templates/named.conf.erb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ options {
2121
auth-nxdomain <%= @auth_nxdomain ? 'yes' : 'no' %>;
2222
listen-on-v6 { any; };
2323
dnssec-enable <%= @dnssec ? 'yes' : 'no' %>;
24-
dnssec-validation <%= @dnssec ? 'yes' : 'no' %>;
25-
dnssec-lookaside <%= @dnssec ? 'auto' : 'no' %>;
24+
<%- if @dnssec -%>
25+
dnssec-validation yes;
26+
dnssec-lookaside auto;
27+
<%- end -%>
2628
<%- if @version != '' -%>
2729
version "<%= @version %>";
2830
<%- end -%>

0 commit comments

Comments
 (0)