aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shorewall/manifests/init.pp
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-11-12 20:57:58 +0000
committerNicolas Vigier <boklm@mageia.org>2010-11-12 20:57:58 +0000
commit0799a91cfc6db96a6b09a806643f41900af211f8 (patch)
tree1815578c6f61b943a463565dd93c5d610c28c3f5 /modules/shorewall/manifests/init.pp
parent3ae9fb932a1a776ca0b96523c1bde29401747ac8 (diff)
downloadpuppet-0799a91cfc6db96a6b09a806643f41900af211f8.tar
puppet-0799a91cfc6db96a6b09a806643f41900af211f8.tar.gz
puppet-0799a91cfc6db96a6b09a806643f41900af211f8.tar.bz2
puppet-0799a91cfc6db96a6b09a806643f41900af211f8.tar.xz
puppet-0799a91cfc6db96a6b09a806643f41900af211f8.zip
change shorewall test dir
Diffstat (limited to 'modules/shorewall/manifests/init.pp')
-rw-r--r--modules/shorewall/manifests/init.pp10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/shorewall/manifests/init.pp b/modules/shorewall/manifests/init.pp
index 120c4a96..bbd4cf93 100644
--- a/modules/shorewall/manifests/init.pp
+++ b/modules/shorewall/manifests/init.pp
@@ -1,10 +1,8 @@
class shorewall {
include concat::setup
- $shorewalldir = "/etc/shorewall_test"
-
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 @@ class shorewall {
### Rules
shorewallfile{ rules: }
define rule_line($order = 50) {
- $filename = "${shorewalldir}/rules"
+ $filename = "/tmp/shorewall/rules"
$line = $name
concat::fragment{"newline_${name}":
target => $filename,
@@ -56,7 +54,7 @@ class shorewall {
### Zones
shorewallfile{ zones: }
define zone_line($order = 50) {
- $filename = "${shorewalldir}/zones"
+ $filename = "/tmp/shorewall/zones"
$line = $name
concat::fragment{"newline_${name}":
target => $filename,
@@ -76,7 +74,7 @@ class shorewall {
### Policy
shorewallfile{ policy: }
define policy_line($order = 50) {
- $filename = "${shorewalldir}/policy"
+ $filename = "/tmp/shorewall/policy"
$line = $name
concat::fragment{"newline_${name}":
target => $filename,