[Mageia-sysadm] [253] don't use a variable for shorewall dir (not working)
root at mageia.org
root at mageia.org
Fri Nov 12 23:36:51 CET 2010
Revision: 253
Author: boklm
Date: 2010-11-12 23:36:51 +0100 (Fri, 12 Nov 2010)
Log Message:
-----------
don't use a variable for shorewall dir (not working)
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:33:33 UTC (rev 252)
+++ puppet/modules/shorewall/manifests/init.pp 2010-11-12 22:36:51 UTC (rev 253)
@@ -1,10 +1,8 @@
class shorewall {
include concat::setup
- $shorewalldir = "/tmp/shorewall"
-
define shorewallfile () {
- $filename = "${shorewalldir}/${name}"
+ $filename = "/tmp/shorewall/${name}"
$header = "puppet:///modules/shorewall/headers/${name}"
$footer = "puppet:///modules/shorewall/footers/${name}"
concat{$filename:
@@ -29,7 +27,7 @@
### Rules
shorewallfile{ rules: }
define rule_line($order = 50) {
- $filename = "${shorewalldir}/rules"
+ $filename = "/tmp/shorewall/rules"
$line = "${name}\n"
concat::fragment{"newline_${name}":
target => $filename,
@@ -56,7 +54,7 @@
### Zones
shorewallfile{ zones: }
define zone_line($order = 50) {
- $filename = "${shorewalldir}/zones"
+ $filename = "/tmp/shorewall/zones"
$line = "${name}\n"
concat::fragment{"newline_${name}":
target => $filename,
@@ -76,7 +74,7 @@
### Policy
shorewallfile{ policy: }
define policy_line($order = 50) {
- $filename = "${shorewalldir}/policy"
+ $filename = "/tmp/shorewall/policy"
$line = "${name}\n"
concat::fragment{"newline_${name}":
target => $filename,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101112/8768fdcd/attachment.html>
More information about the Mageia-sysadm
mailing list