Support minimal-responses setting on views

This commit is contained in:
Alex Frolkin 2015-10-14 15:32:56 +01:00 committed by Ahmad Jagot
parent 1aebf94b7f
commit e579b5479b
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ define bind::view (
$recursion_match_destinations = '', $recursion_match_destinations = '',
$recursion_match_only = false, $recursion_match_only = false,
$order = '10', $order = '10',
$minimal_responses = false,
) { ) {
$confdir = $::bind::confdir $confdir = $::bind::confdir

View File

@ -44,6 +44,9 @@ view "<%= @name %>" {
}; };
<%- end -%> <%- end -%>
<%- end -%> <%- end -%>
<%- if @minimal_responses -%>
minimal-responses yes;
<%- end -%>
<%- if scope.lookupvar('osfamily') == 'Debian' -%> <%- if scope.lookupvar('osfamily') == 'Debian' -%>
include "<%= @confdir %>/named.conf.default-zones"; include "<%= @confdir %>/named.conf.default-zones";
<%- end -%> <%- end -%>