From 9bfd1dd20b5cc47a5dd8a5bc8cc3e1e2183e1626 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 25 Jan 2022 13:00:48 -0300 Subject: Misc fixes --- manifests/virtual/ssh.pp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'manifests/virtual/ssh.pp') 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, + } } } -- cgit v1.2.3