summaryrefslogtreecommitdiff
path: root/manifests/virtual/ssh.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/virtual/ssh.pp')
-rw-r--r--manifests/virtual/ssh.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/virtual/ssh.pp b/manifests/virtual/ssh.pp
index 0a11fa2..98fa976 100644
--- a/manifests/virtual/ssh.pp
+++ b/manifests/virtual/ssh.pp
@@ -2,13 +2,15 @@ define firewall::virtual::ssh(
$destination,
$port_orig = '22',
$port_dest = '',
- $zone = 'vm'
+ $zone = 'vm',
$implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
) {
- class { "firewall::implementations::${implementation}::virtual::ssh":
- destination => $destination,
- port_orig => $port_orig,
- port_dest => $port_dest,
- zone => $zone,
+ if $implementation == 'shorewall' {
+ firewall::implementations::shorewall::virtual::ssh { "${name}":
+ destination => $destination,
+ port_orig => $port_orig,
+ port_dest => $port_dest,
+ zone => $zone,
+ }
}
}