aboutsummaryrefslogtreecommitdiff
path: root/manifests/managed_file.pp
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-09-16 17:51:56 +0200
committerMicah Anderson <micah@riseup.net>2009-12-07 11:33:26 -0500
commit69ffd72ce9e5217ae7d205e04716c40d8c862315 (patch)
tree36dfb4eb635bd065396b6a4595df217a2d9c1a3b /manifests/managed_file.pp
parente972b9abde01a6d89579e20fe4b038c7cbfe0c45 (diff)
downloadpuppet-shorewall-69ffd72ce9e5217ae7d205e04716c40d8c862315.tar.gz
puppet-shorewall-69ffd72ce9e5217ae7d205e04716c40d8c862315.tar.bz2
factored everything out in its own file
Diffstat (limited to 'manifests/managed_file.pp')
-rw-r--r--manifests/managed_file.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/managed_file.pp b/manifests/managed_file.pp
new file mode 100644
index 0000000..6ade6c9
--- /dev/null
+++ b/manifests/managed_file.pp
@@ -0,0 +1,17 @@
+define shorewall::managed_file () {
+ $dir = "/var/lib/puppet/modules/shorewall/${name}.d"
+ concatenated_file { "/var/lib/puppet/modules/shorewall/$name":
+ dir => $dir,
+ mode => 0600,
+ }
+ file {
+ "${dir}/000-header":
+ source => "puppet://$server/shorewall/boilerplate/${name}.header",
+ mode => 0600, owner => root, group => 0,
+ notify => Exec["concat_${dir}"];
+ "${dir}/999-footer":
+ source => "puppet://$server/shorewall/boilerplate/${name}.footer",
+ mode => 0600, owner => root, group => 0,
+ notify => Exec["concat_${dir}"];
+ }
+}