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:
+2
-2
@@ -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| -%>
|
||||
|
||||
Reference in New Issue
Block a user