summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-19 18:34:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-19 18:34:48 -0300
commit81a4a5ac3b109b806c629bb540d25f93c6dd9ef5 (patch)
treebd4c69c772f1a2cb2b55fa21ebd7012648ee4658
parent9a83a2d427136ffaab3260712181cc6e932673dd (diff)
downloadpuppet-bind-81a4a5ac3b109b806c629bb540d25f93c6dd9ef5.tar.gz
puppet-bind-81a4a5ac3b109b806c629bb540d25f93c6dd9ef5.tar.bz2
Adding allow_query parameter to bind::view
-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 %>