aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-11-12 22:33:33 +0000
committerNicolas Vigier <boklm@mageia.org>2010-11-12 22:33:33 +0000
commit8e688e60fd7c79e9702acfdaf2d724d45b7981a8 (patch)
tree0bea2fdce69b09f938db414abfc6797026e39b27 /modules
parent228a50276d7a7131e9e3bfdd496cc39bcff9b0d2 (diff)
downloadpuppet-8e688e60fd7c79e9702acfdaf2d724d45b7981a8.tar
puppet-8e688e60fd7c79e9702acfdaf2d724d45b7981a8.tar.gz
puppet-8e688e60fd7c79e9702acfdaf2d724d45b7981a8.tar.bz2
puppet-8e688e60fd7c79e9702acfdaf2d724d45b7981a8.tar.xz
puppet-8e688e60fd7c79e9702acfdaf2d724d45b7981a8.zip
use shorewall for shorewall directory
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 7c8e1f55..d2eef0bb 100644
--- a/modules/shorewall/manifests/init.pp
+++ b/modules/shorewall/manifests/init.pp
@@ -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 @@ class shorewall {
### 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 @@ class shorewall {
### 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 @@ class shorewall {
### Policy
shorewallfile{ policy: }
define policy_line($order = 50) {
- $filename = "/tmp/shorewall/policy"
+ $filename = "${shorewalldir}/policy"
$line = "${name}\n"
concat::fragment{"newline_${name}":
target => $filename,