summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/view.pp1
-rw-r--r--templates/view.erb2
2 files changed, 2 insertions, 1 deletions
diff --git a/manifests/view.pp b/manifests/view.pp
index a376e06..a5f7bf5 100644
--- a/manifests/view.pp
+++ b/manifests/view.pp
@@ -10,6 +10,7 @@
define bind::view (
$ensure = present,
$match_clients = 'any',
+ $allow_query = false,
$recursion = 'yes',
$order = 10,
) {
diff --git a/templates/view.erb b/templates/view.erb
index 44de741..6b3e776 100644
--- a/templates/view.erb
+++ b/templates/view.erb
@@ -2,4 +2,4 @@
view "<%= name %>" {
match-clients { <%= match_clients %>; };
recursion <%= recursion %>;
-
+ <% if allow_query != false %>allow-query { <%= allow_query %>; }; <% end %>