summaryrefslogtreecommitdiff
path: root/manifests/virtual/rsync.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/virtual/rsync.pp')
-rw-r--r--manifests/virtual/rsync.pp16
1 files changed, 7 insertions, 9 deletions
diff --git a/manifests/virtual/rsync.pp b/manifests/virtual/rsync.pp
index 50df46c..79a8d83 100644
--- a/manifests/virtual/rsync.pp
+++ b/manifests/virtual/rsync.pp
@@ -1,11 +1,9 @@
-class firewall::virtual::rsync($destination, $zone = 'fw') {
- shorewall::rule { 'rsync-0':
- action => 'DNAT',
- source => 'net',
- destination => "$zone:$destination:873",
- proto => 'tcp',
- destinationport => '873',
- ratelimit => '-',
- order => 2600,
+class firewall::virtual::rsync(
+ $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
+ $destination, $zone = 'fw'
+) {
+ class { "firewall::implementations::${implementation}::virtual::rsync":
+ destination => $destination,
+ zone => $zone,
}
}