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/tor.pp | |
parent | 9bfd1dd20b5cc47a5dd8a5bc8cc3e1e2183e1626 (diff) | |
download | puppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.gz puppet-firewall-a3e5ee421e5686b2e5f7536a91436e37a7b1e684.tar.bz2 |
Misc fixes (2)
Diffstat (limited to 'manifests/router/tor.pp')
-rw-r--r-- | manifests/router/tor.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/router/tor.pp b/manifests/router/tor.pp index b93ea05..e3c61fb 100644 --- a/manifests/router/tor.pp +++ b/manifests/router/tor.pp @@ -2,9 +2,11 @@ define firewall::router::tor( $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'), $destination, $zone = 'loc', $originaldest = $ipaddress ) { - class { "firewall::implementations::${implementation}::router::tor": - destination => $destination, - zone => $zone, - originaldest => $originaldest, + if $implementation == 'shorewall' { + firewall::implementations::shorewall::router::tor { "${name}": + destination => $destination, + zone => $zone, + originaldest => $originaldest, + } } } |