aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-11-12 20:43:03 +0000
committerNicolas Vigier <boklm@mageia.org>2010-11-12 20:43:03 +0000
commit28366ce9db3b5241943db56d3133eb50827b1f64 (patch)
treea7d24b948954cd32d17d7fd864649c351952a6b3 /modules
parentd8188edde74b8964443212bb04aed9b934bb593a (diff)
downloadpuppet-28366ce9db3b5241943db56d3133eb50827b1f64.tar
puppet-28366ce9db3b5241943db56d3133eb50827b1f64.tar.gz
puppet-28366ce9db3b5241943db56d3133eb50827b1f64.tar.bz2
puppet-28366ce9db3b5241943db56d3133eb50827b1f64.tar.xz
puppet-28366ce9db3b5241943db56d3133eb50827b1f64.zip
save shorewall config in /etc/shorewall_test for testing
Diffstat (limited to 'modules')
-rw-r--r--modules/shorewall/manifests/init.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/shorewall/manifests/init.pp b/modules/shorewall/manifests/init.pp
index 7b7162ef..6228cd8f 100644
--- a/modules/shorewall/manifests/init.pp
+++ b/modules/shorewall/manifests/init.pp
@@ -1,8 +1,10 @@
class shorewall {
include concat::setup
+ $shorewalldir = "/etc/shorewall_test"
+
define shorewallfile () {
- $filename = "/etc/shorewall/${name}"
+ $filename = "${shorewalldir}/${name}"
$header = "puppet:///modules/shorewall/headers/${name}"
$footer = "puppet:///modules/shorewall/footers/${name}"
concat{$filename:
@@ -27,7 +29,7 @@ class shorewall {
### Rules
shorewallfile{ rules: }
define rule_line($order = 50) {
- $filename = "/etc/shorewall/rules"
+ $filename = "${shorewalldir}/shorewall/rules"
$line = $name
concat::fragment{"newline_${name}":
target => $filename,
@@ -54,7 +56,7 @@ class shorewall {
### Zones
shorewallfile{ zones: }
define zone_line($order = 50) {
- $filename = "/etc/shorewall/zones"
+ $filename = "${shorewalldir}/shorewall/zones"
$line = $name
concat::fragment{"newline_${name}":
target => $filename,
@@ -74,7 +76,7 @@ class shorewall {
### Policy
shorewallfile{ policy: }
define policy_line($order = 50) {
- $filename = "/etc/shorewall/policy"
+ $filename = "${shorewalldir}/shorewall/policy"
$line = $name
concat::fragment{"newline_${name}":
target => $filename,