diff options
author | mh <mh@immerda.ch> | 2016-06-26 13:39:04 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-06-26 13:39:27 +0200 |
commit | 4a0cfbb26e072d12bcb14a31ef8b6f69e190d42e (patch) | |
tree | 89ec6a3c92b6e31691e33f677a49e111f238a138 /manifests/config_setting.pp | |
parent | 543ae812999f35008a835db19b22874d5f6e923c (diff) |
modernize so we don't need to deploy a full config file anymore
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']; + } +} |