diff --git a/manifests/view.pp b/manifests/view.pp index 3efea20..c5fc9ad 100644 --- a/manifests/view.pp +++ b/manifests/view.pp @@ -9,6 +9,10 @@ define bind::view ( $recursion_match_clients = 'any', $recursion_match_destinations = '', $recursion_match_only = false, + $allow_query = 'any', + $allow_query_on = 'any', + $allow_query_cache = 'any', + $allow_query_cache_on = 'any', $allow_transfers = '', $notify_source = '', $also_notify = '', diff --git a/templates/view.erb b/templates/view.erb index df0f8d5..2d5ad0f 100644 --- a/templates/view.erb +++ b/templates/view.erb @@ -33,6 +33,34 @@ view "<%= @name %>" { <%- end -%> }; <%- end -%> +<%- if @allow_query and @allow_query != '' -%> + allow-query { +<%- Array(@allow_query).each do |query_client| -%> + <%= query_client %>; +<%- end -%> + }; +<%- end -%> +<%- if @allow_query_on and @allow_query_on != '' -%> + allow-query-on { +<%- Array(@allow_query_on).each do |query_server| -%> + <%= match_server %>; +<%- end -%> + }; +<%- end -%> +<%- if @allow_query_cache and @allow_query_cache != '' -%> + allow-query-cache { +<%- Array(@allow_query_cache).each do |query_client| -%> + <%= query_client %>; +<%- end -%> + }; +<%- end -%> +<%- if @allow_query_cache_on and @allow_query_cache_on != '' -%> + allow-query-cache-on { +<%- Array(@allow_query_cache_on).each do |query_server| -%> + <%= query_server %>; +<%- end -%> + }; +<%- end -%> <%- end -%> <%- if @allow_transfers and @allow_transfers != '' -%> allow-transfer {