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/hairpinning.pp | |
parent | 9bfd1dd20b5cc47a5dd8a5bc8cc3e1e2183e1626 (diff) | |
download | puppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.gz puppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.bz2 |
Misc fixes (2)
Diffstat (limited to 'manifests/router/hairpinning.pp')
-rw-r--r-- | manifests/router/hairpinning.pp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/manifests/router/hairpinning.pp b/manifests/router/hairpinning.pp index 96fac1e..7be71ca 100644 --- a/manifests/router/hairpinning.pp +++ b/manifests/router/hairpinning.pp @@ -12,16 +12,18 @@ define firewall::router::hairpinning( $dest_zone = 'loc', $port_dest = '' ) { - class { "firewall::implementations::${implementation}::router::hairpinning": - order => $order, - proto => $proto, - port => $port, - external_ip => $external_ip, - interface => $interface, - destination => $destination, - source => $source, - source_zone => $source_zone, - dest_zone => $dest_zone, - port_dest => $port_dest, + if $implementation == 'shorewall' { + firewall::implementations::shorewall::router::hairpinning { "${name}": + order => $order, + proto => $proto, + port => $port, + external_ip => $external_ip, + interface => $interface, + destination => $destination, + source => $source, + source_zone => $source_zone, + dest_zone => $dest_zone, + port_dest => $port_dest, + } } } |