summaryrefslogtreecommitdiff
path: root/manifests/router/munin.pp
diff options
context:
space:
mode:
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,
+ }
}
}