aboutsummaryrefslogtreecommitdiff
path: root/manifests/entry.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/entry.pp')
-rw-r--r--manifests/entry.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/entry.pp b/manifests/entry.pp
new file mode 100644
index 0000000..bd59a88
--- /dev/null
+++ b/manifests/entry.pp
@@ -0,0 +1,11 @@
+define shorewall::entry(
+ $line
+){
+ $target = "/var/lib/puppet/modules/shorewall/${name}"
+ $dir = dirname($target)
+ file { $target:
+ content => "${line}\n",
+ mode => 0600, owner => root, group => 0,
+ notify => Exec["concat_${dir}"],
+ }
+}