diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-01-25 13:29:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-01-25 13:29:40 -0300 |
commit | a3e5ee421e5686b2e5f7536a91436e37a7b1e684 (patch) | |
tree | 9ed3722c77fc2a8f003bb103b2e8305a85fa6272 /manifests/router/ssh.pp | |
parent | 9bfd1dd20b5cc47a5dd8a5bc8cc3e1e2183e1626 (diff) | |
download | puppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.gz puppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.bz2 |
Misc fixes (2)
Diffstat (limited to 'manifests/router/ssh.pp')
-rw-r--r-- | manifests/router/ssh.pp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/manifests/router/ssh.pp b/manifests/router/ssh.pp index 6f1a640..5704fbb 100644 --- a/manifests/router/ssh.pp +++ b/manifests/router/ssh.pp @@ -6,12 +6,13 @@ define firewall::router::ssh( $originaldest = $ipaddress, $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'), ) { - class { "firewall::implementations::${implementation}::router::ssh": - destination => $destination, - port_orig => $port_orig, - port_dest => $port_dest, - zone => $zone, - order => $order, - originaldest => $originaldest, + if $implementation == 'shorewall' { + firewall::implementations::shorewall::router::ssh { "${name}": + destination => $destination, + port_orig => $port_orig, + port_dest => $port_dest, + zone => $zone, + originaldest => $originaldest, + } } } |