]> gitweb.fluxo.info Git - puppet-firewall.git/commitdiff
Switch firewall::router::rsync to class
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Oct 2015 20:52:57 +0000 (17:52 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Oct 2015 20:52:57 +0000 (17:52 -0300)
manifests/router/rsync.pp

index e185981232dd5aa9240081da4feabfe9624ce5ad..71faf866a3f1fc0b66e11c2428081fb88561fd45 100644 (file)
@@ -1,5 +1,5 @@
-define firewall::router::rsync($destination, $port_orig = '873', $port_dest = '', $zone = 'loc',
-                             $originaldest = $ipaddress) {
+class firewall::router::rsync($destination, $port_orig = '873', $port_dest = '', $zone = 'loc',
+                              $originaldest = $ipaddress) {
   shorewall::rule { "rsync-$name-1":
     action          => 'DNAT',
     source          => 'net',