summaryrefslogtreecommitdiff
path: root/manifests/virtual/munin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/virtual/munin.pp')
-rw-r--r--manifests/virtual/munin.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/virtual/munin.pp b/manifests/virtual/munin.pp
index 531acd9..3db8b7e 100644
--- a/manifests/virtual/munin.pp
+++ b/manifests/virtual/munin.pp
@@ -6,11 +6,13 @@ define firewall::virtual::munin(
$zone = 'fw'
$implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
) {
- class { "firewall::implementations::${implementation}::virtual::munin":
- destination => $destination,
- port_orig => $port_orig,
- port_dest => $port_dest,
- order => $order,
- zone => $zone,
+ if $implementation == 'shorewall' {
+ firewall::implementations::shorewall::virtual::munin { "${name}":
+ destination => $destination,
+ port_orig => $port_orig,
+ port_dest => $port_dest,
+ order => $order,
+ zone => $zone,
+ }
}
}