diff options
Diffstat (limited to 'manifests/virtual/http.pp')
-rw-r--r-- | manifests/virtual/http.pp | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/manifests/virtual/http.pp b/manifests/virtual/http.pp index bb8e232..3050eb3 100644 --- a/manifests/virtual/http.pp +++ b/manifests/virtual/http.pp @@ -1,23 +1,8 @@ -class firewall::virtual::http($destination) { - shorewall::rule { 'http-route-1': - action => 'DNAT', - source => 'vm', - destination => "fw:$destination:80", - proto => 'tcp', - destinationport => '80', - originaldest => lookup('firewall::external_ip', undef, undef, $::ipaddress), - ratelimit => '-', - order => 600, - } - - shorewall::rule { 'http-route-2': - action => 'DNAT', - source => 'net', - destination => "vm:$destination:80", - proto => 'tcp', - destinationport => '80', - originaldest => lookup('firewall::external_ip', undef, undef, $::ipaddress), - ratelimit => '-', - order => 601, +class firewall::virtual::http( + $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'), + $destination +) { + class { "firewall::implementations::${implementation}::virtual::http": + destination => $destination, } } |