[Mageia-sysadm] [252] use shorewall for shorewall directory

root at mageia.org root at mageia.org
Fri Nov 12 23:33:33 CET 2010


Revision: 252
Author:   boklm
Date:     2010-11-12 23:33:33 +0100 (Fri, 12 Nov 2010)
Log Message:
-----------
use shorewall for shorewall directory

Modified Paths:
--------------
    puppet/modules/shorewall/manifests/init.pp

Modified: puppet/modules/shorewall/manifests/init.pp
===================================================================
--- puppet/modules/shorewall/manifests/init.pp	2010-11-12 22:29:49 UTC (rev 251)
+++ puppet/modules/shorewall/manifests/init.pp	2010-11-12 22:33:33 UTC (rev 252)
@@ -1,8 +1,10 @@
 class shorewall {
   include concat::setup
 
+  $shorewalldir = "/tmp/shorewall"
+
   define shorewallfile () {
-     $filename = "/tmp/shorewall/${name}"
+     $filename = "${shorewalldir}/${name}"
      $header = "puppet:///modules/shorewall/headers/${name}"
      $footer = "puppet:///modules/shorewall/footers/${name}"
      concat{$filename:
@@ -27,7 +29,7 @@
   ### Rules
   shorewallfile{ rules: }
   define rule_line($order = 50) {
-     $filename = "/tmp/shorewall/rules"
+     $filename = "${shorewalldir}/rules"
      $line = "${name}\n"
      concat::fragment{"newline_${name}":
 	target => $filename,
@@ -54,7 +56,7 @@
   ### Zones
   shorewallfile{ zones: }
   define zone_line($order = 50) {
-     $filename = "/tmp/shorewall/zones"
+     $filename = "${shorewalldir}/zones"
      $line = "${name}\n"
      concat::fragment{"newline_${name}":
 	target => $filename,
@@ -74,7 +76,7 @@
   ### Policy
   shorewallfile{ policy: }
   define policy_line($order = 50) {
-     $filename = "/tmp/shorewall/policy"
+     $filename = "${shorewalldir}/policy"
      $line = "${name}\n"
      concat::fragment{"newline_${name}":
 	target => $filename,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101112/4324c8f9/attachment.html>


More information about the Mageia-sysadm mailing list