diff options
author | mh <mh@immerda.ch> | 2017-04-07 17:05:39 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2017-04-07 17:05:39 +0200 |
commit | fd83e644a5ec2630ccc8b83d6029fbba7bfe1fe9 (patch) | |
tree | 9ce8275df9dcc40c4489600bb152ef8a22cc9716 /manifests/config6_setting.pp | |
parent | 89a350feaa3e5f94d104ac7e98af608db659e871 (diff) |
first step towards shorewall6, basic service is running
Diffstat (limited to 'manifests/config6_setting.pp')
-rw-r--r-- | manifests/config6_setting.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/config6_setting.pp b/manifests/config6_setting.pp new file mode 100644 index 0000000..2fbb1df --- /dev/null +++ b/manifests/config6_setting.pp @@ -0,0 +1,18 @@ +# set a particular config option for shorewall6 +# +# e.g. +# shorewall::config6_setting{ +# 'CONFIG_PATH': +# value => '"/etc/shorewall6/puppet:/etc/shorewall6:/usr/share/shorewall6"' +# } +define shorewall::config_setting( + $value, +){ + augeas { "shorewall6_module_${name}": + changes => "set /files/etc/shorewall6/shorewall6.conf/${name} ${value}", + lens => 'Shellvars.lns', + incl => '/etc/shorewall/shorewall6.conf', + notify => Exec['shorewall6_check'], + require => Package['shorewall6']; + } +} |