diff options
author | mh <mh@immerda.ch> | 2009-09-29 20:11:52 +0200 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-07 11:34:11 -0500 |
commit | fb82fa42e3c61c6adce3da457d1a4e15208b0683 (patch) | |
tree | e4b142efacf41d039866f09d814020458d6bfe16 /manifests/entry.pp | |
parent | 05dca56e4a139f273094a49dd2078b65ae474457 (diff) | |
download | puppet-shorewall-fb82fa42e3c61c6adce3da457d1a4e15208b0683.tar.gz puppet-shorewall-fb82fa42e3c61c6adce3da457d1a4e15208b0683.tar.bz2 |
improve rule handling possiblities
they can now be set to absent as well
introduce 2 outgoing ssh rules to either
disable or remove the entry at all
Diffstat (limited to 'manifests/entry.pp')
-rw-r--r-- | manifests/entry.pp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/entry.pp b/manifests/entry.pp index bd59a88..4e639bc 100644 --- a/manifests/entry.pp +++ b/manifests/entry.pp @@ -1,9 +1,11 @@ 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}"], |