]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
Adding order parameter to bind::view view
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 26 May 2013 20:56:38 +0000 (17:56 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 26 May 2013 20:56:38 +0000 (17:56 -0300)
manifests/view.pp

index ed68a027cd4866c03469d79657904093d7d9005e..a376e06242d015f6d96e4663f601874fc5710b96 100644 (file)
@@ -5,17 +5,20 @@
 # Arguments:
 # *$match-clients*: Clients to be matched.
 # *$recursion*: Whether it's a recursive view.
+# *$order*: View order at named.conf.local.
 #
 define bind::view (
   $ensure        = present,
   $match_clients = 'any',
   $recursion     = 'yes',
+  $order         = 10,
 ) {
 
   concat::fragment { "named.local.view.${name}":
     ensure  => $ensure,
     target  => '/etc/bind/named.conf.local',
     content => "include \"/etc/bind/views/${name}.conf\";\n",
+    order   => $order,
     notify  => Service['bind9'],
     require => Package['bind9'],
   }