summaryrefslogtreecommitdiff
path: root/manifests/router/munin.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-01-25 13:29:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-01-25 13:29:40 -0300
commita3e5ee421e5686b2e5f7536a91436e37a7b1e684 (patch)
tree9ed3722c77fc2a8f003bb103b2e8305a85fa6272 /manifests/router/munin.pp
parent9bfd1dd20b5cc47a5dd8a5bc8cc3e1e2183e1626 (diff)
downloadpuppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.gz
puppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.bz2
Misc fixes (2)
Diffstat (limited to 'manifests/router/munin.pp')
-rw-r--r--manifests/router/munin.pp16
1 files changed, 9 insertions, 7 deletions
diff --git a/manifests/router/munin.pp b/manifests/router/munin.pp
index 4fd33fd..e5d2fb9 100644
--- a/manifests/router/munin.pp
+++ b/manifests/router/munin.pp
@@ -7,12 +7,14 @@ define firewall::router::munin(
$originaldest = $ipaddress
$implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
) {
- class { "firewall::implementations::${implementation}::router::munin":
- destination => $destination,
- port_orig => $port_orig,
- port_dest => $port_dest,
- zone => $zone,
- order => $order,
- originaldest => $originaldest,
+ if $implementation == 'shorewall' {
+ firewall::implementations::shorewall::router::munin { "${name}":
+ destination => $destination,
+ port_orig => $port_orig,
+ port_dest => $port_dest,
+ zone => $zone,
+ order => $order,
+ originaldest => $originaldest,
+ }
}
}