aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-09 15:14:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-09 15:14:04 -0300
commit69b6037ee16bdccb443ae3ac822f477ee2963d29 (patch)
treeed59c3b4b3b2d1b52300f382cddfa363fe17fd41 /manifests
parentfd11f36e56692e3dd25769282d752bec12296b19 (diff)
downloadpuppet-nodo-69b6037ee16bdccb443ae3ac822f477ee2963d29.tar.gz
puppet-nodo-69b6037ee16bdccb443ae3ac822f477ee2963d29.tar.bz2
Fixing resource naming for firewall rules (2)
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/firewall.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp
index fca990d..75b2b17 100644
--- a/manifests/subsystems/firewall.pp
+++ b/manifests/subsystems/firewall.pp
@@ -568,7 +568,7 @@ class firewall::router::mail($destination) {
}
define firewall::router::ssh($destination, $port_orig = '22', $port_dest = '') {
- shorewall::rule { "ssh-$port_orig-1":
+ shorewall::rule { "ssh-$name-1":
action => 'DNAT',
source => 'net',
destination => $port_dest ? {
@@ -581,7 +581,7 @@ define firewall::router::ssh($destination, $port_orig = '22', $port_dest = '') {
order => "2$port_orig",
}
- shorewall::rule { "ssh-$port_orig-2":
+ shorewall::rule { "ssh-$name-2":
action => 'DNAT',
source => '$FW',
destination => $port_dest ? {
@@ -597,7 +597,7 @@ define firewall::router::ssh($destination, $port_orig = '22', $port_dest = '') {
}
define firewall::router::munin($destination, $port_orig, $port_dest = '') {
- shorewall::rule { "munin-$port_orig-1":
+ shorewall::rule { "munin-$name-1":
action => 'DNAT',
source => 'net',
destination => $port_dest ? {
@@ -610,7 +610,7 @@ define firewall::router::munin($destination, $port_orig, $port_dest = '') {
order => "4$id",
}
- shorewall::rule { "munin-$port_orig-2":
+ shorewall::rule { "munin-$name-2":
action => 'DNAT',
source => '$FW',
destination => $port_dest ? {