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