aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/subsystems/firewall/vserver.pp12
-rw-r--r--manifests/vserver.pp8
2 files changed, 19 insertions, 1 deletions
diff --git a/manifests/subsystems/firewall/vserver.pp b/manifests/subsystems/firewall/vserver.pp
index fe96c40..4262244 100644
--- a/manifests/subsystems/firewall/vserver.pp
+++ b/manifests/subsystems/firewall/vserver.pp
@@ -465,3 +465,15 @@ class firewall::vserver::gobby($destination, $zone = 'fw') {
order => '2400',
}
}
+
+class firewall::vserver::yacy($destination, $zone = 'fw') {
+ shorewall::rule { 'yacy-0':
+ action => 'DNAT',
+ source => 'net',
+ destination => "$zone:$destination:8090",
+ proto => 'tcp',
+ destinationport => '8090',
+ ratelimit => '-',
+ order => '2500',
+ }
+}
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index 02cb102..aa864ed 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -48,7 +48,7 @@ class nodo::vserver inherits nodo {
$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) {
+ $jabber = false, $mumble = false, $gobby = false, $yacy = false) {
# set instance id
if $context <= 9 {
@@ -217,6 +217,12 @@ class nodo::vserver inherits nodo {
"firewall::vserver::gobby": destination => "192.168.0.$context";
}
}
+
+ if $yacy {
+ class {
+ "firewall::vserver::yacy": destination => "192.168.0.$context";
+ }
+ }
}
}
}