aboutsummaryrefslogtreecommitdiff
path: root/manifests/vserver.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-15 19:02:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-15 19:02:52 -0300
commita25e4d7e3d4f4f33a8a48e13f0b2f5200a4f4c60 (patch)
treefcfb2be712d2de137bf0dda64430f7a1e4add43c /manifests/vserver.pp
parentbc443116a68704768be51129695daaaf8755fbb1 (diff)
downloadpuppet-nodo-a25e4d7e3d4f4f33a8a48e13f0b2f5200a4f4c60.tar.gz
puppet-nodo-a25e4d7e3d4f4f33a8a48e13f0b2f5200a4f4c60.tar.bz2
Adding firewall::vserver::dns
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r--manifests/vserver.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index 79b39bd..c7c7216 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -37,7 +37,7 @@ class nodo::vserver inherits nodo {
define instance($context, $ensure = 'running', $proxy = false,
$puppetmaster = false, $gitd = false, $mail = false,
$icecast = false, $sound = false, $ticket = false,
- $memory_limit = false, $distro = 'lenny') {
+ $memory_limit = false, $distro = 'lenny', $dns = false) {
# set instance id
if $context <= 9 {
@@ -155,6 +155,12 @@ class nodo::vserver inherits nodo {
"firewall::vserver::mail": destination => "192.168.0.$context";
}
}
+
+ if $dns {
+ class {
+ "firewall::vserver::dns": destination => "192.168.0.$context";
+ }
+ }
}
}
}