Include the default zones on RedHat

RedHat's default zones are baked into the stock named.conf, which the module's
template completely rewrites. Since the module is extremely view-based, and the
Debian default-zones are repositioned into the zones, let's take those defaults
out of the stock named.conf, build a configuration file out of them and include
it in the view just the same.
This commit is contained in:
Nate Riffe
2015-12-29 20:54:14 -06:00
parent 3333c58e33
commit 57002c31a4
7 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ view "<%= @name %>" {
};
<%- end -%>
<%- end -%>
<%- if scope.lookupvar('osfamily') == 'Debian' -%>
include "<%= @confdir %>/named.conf.default-zones";
<%- if @default_zones_include -%>
include "<%= @default_zones_include %>";
<%- end -%>
<%- Array(@zones).each do |zone| -%>