diff options
author | duritong <peter.meier+github@immerda.ch> | 2017-01-12 15:47:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 15:47:48 +0100 |
commit | 07f4d8f14ac5224ba900d27f51cd4ae8121f1578 (patch) | |
tree | 8b66aeaf3df3be46ca603fc081d8293bc2114a35 /manifests/config_setting.pp | |
parent | 78b2f91caf4c7ade2630376c9c326773fdd5ef3c (diff) | |
parent | 24076ddaa5c802b503e59e279750ab5d6353815d (diff) |
Merge branch 'master' into master
Diffstat (limited to 'manifests/config_setting.pp')
-rw-r--r-- | manifests/config_setting.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/config_setting.pp b/manifests/config_setting.pp new file mode 100644 index 0000000..5eecf42 --- /dev/null +++ b/manifests/config_setting.pp @@ -0,0 +1,18 @@ +# set a particular config option +# +# e.g. +# shorewall::config_setting{ +# 'CONFIG_PATH': +# value => '"/etc/shorewall/puppet:/etc/shorewall:/usr/share/shorewall"' +# } +define shorewall::config_setting( + $value, +){ + augeas { "shorewall_module_${name}": + changes => "set /files/etc/shorewall/shorewall.conf/${name} ${value}", + lens => 'Shellvars.lns', + incl => '/etc/shorewall/shorewall.conf', + notify => Exec['shorewall_check'], + require => Package['shorewall']; + } +} |