aboutsummaryrefslogtreecommitdiff
path: root/manifests/vserver/instance.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-05 22:31:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-05 22:31:35 -0300
commit44076dd411023c9dbb04441837ad7207640b4101 (patch)
tree72258d31d7a67f5fa85f2beb1cad449892579330 /manifests/vserver/instance.pp
parentd37e7e6bedd101cbbb53f83030bcd14cfcbc06d4 (diff)
downloadpuppet-nodo-44076dd411023c9dbb04441837ad7207640b4101.tar.gz
puppet-nodo-44076dd411023c9dbb04441837ad7207640b4101.tar.bz2
Adding firewall::vserver::mdns for avahi support
Diffstat (limited to 'manifests/vserver/instance.pp')
-rw-r--r--manifests/vserver/instance.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/vserver/instance.pp b/manifests/vserver/instance.pp
index dba9abb..28dd85d 100644
--- a/manifests/vserver/instance.pp
+++ b/manifests/vserver/instance.pp
@@ -4,7 +4,7 @@ define nodo::vserver::instance($context, $ensure = 'running', $proxy = false,
$icecast = false, $sound = false, $tor = false,
$ticket = false, $memory_limit = false, $distro = 'squeeze',
$dns = false, $munin_port = false, $monkeysphere_ssh_port = false,
- $jabber = false, $mumble = false, $gobby = false, $yacy = false, $rsync = false) {
+ $jabber = false, $mumble = false, $gobby = false, $yacy = false, $rsync = false, $avahi = false) {
# set instance id
if $context <= 9 {
@@ -175,6 +175,12 @@ define nodo::vserver::instance($context, $ensure = 'running', $proxy = false,
"firewall::vserver::rsync": destination => "192.168.0.$context";
}
}
+
+ if $avahi {
+ class {
+ "firewall::vserver::mdns": destination => "192.168.0.$context";
+ }
+ }
}
}
}