summaryrefslogtreecommitdiff
path: root/manifests/view.pp
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 /manifests/view.pp
parent6b35c5e2834bb5582656f12f26ce3955d2985f28 (diff)
downloadpuppet-bind-view.tar.gz
puppet-bind-view.tar.bz2
Adding order parameter to bind::viewview
Diffstat (limited to 'manifests/view.pp')
-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'],
}