summaryrefslogtreecommitdiff
path: root/manifests/virtual/web.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/virtual/web.pp')
-rw-r--r--manifests/virtual/web.pp12
1 files changed, 3 insertions, 9 deletions
diff --git a/manifests/virtual/web.pp b/manifests/virtual/web.pp
index 06bf993..c54a95b 100644
--- a/manifests/virtual/web.pp
+++ b/manifests/virtual/web.pp
@@ -1,14 +1,8 @@
define firewall::virtual::web(
+ $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
$destination
) {
- shorewall::rule { "web-route-${name}-1":
- action => 'DNAT',
- source => 'vm',
- destination => "fw:${destination}:80",
- proto => 'tcp',
- destinationport => '80',
- originaldest => $destination,
- ratelimit => '-',
- order => 600,
+ class { "firewall::implementations::${implementation}::virtual::web":
+ destination => $destination,
}
}