]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
Adding allow_query parameter to bind::view
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 19 Jul 2013 21:34:48 +0000 (18:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 19 Jul 2013 21:34:48 +0000 (18:34 -0300)
manifests/view.pp
templates/view.erb

index a376e06242d015f6d96e4663f601874fc5710b96..a5f7bf5e9aaed8b04085d4c185489a17c004f806 100644 (file)
@@ -10,6 +10,7 @@
 define bind::view (
   $ensure        = present,
   $match_clients = 'any',
+  $allow_query   = false,
   $recursion     = 'yes',
   $order         = 10,
 ) {
index 44de74179105b2e6943ee0ff2e6f2f2f8b9d540d..6b3e776a714cfb115497f14960fcc19b81a950ca 100644 (file)
@@ -2,4 +2,4 @@
 view "<%= name %>" {
         match-clients { <%= match_clients %>; };
         recursion <%= recursion %>;
-
+        <% if allow_query != false %>allow-query { <%= allow_query %>; }; <% end %>