summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-26 17:56:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-26 17:56:38 -0300
commit9a83a2d427136ffaab3260712181cc6e932673dd (patch)
tree4a21cc69ea491280f5b4791e28e9016d7b1c08b5
parent6b35c5e2834bb5582656f12f26ce3955d2985f28 (diff)
downloadpuppet-bind-9a83a2d427136ffaab3260712181cc6e932673dd.tar.gz
puppet-bind-9a83a2d427136ffaab3260712181cc6e932673dd.tar.bz2
Adding order parameter to bind::viewview
-rw-r--r--manifests/view.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/manifests/view.pp b/manifests/view.pp
index ed68a02..a376e06 100644
--- a/manifests/view.pp
+++ b/manifests/view.pp
@@ -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'],
}