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