summaryrefslogtreecommitdiff
path: root/manifests/config_setting.pp
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2018-11-09 10:03:32 +0100
committerkwadronaut <kwadronaut@leap.se>2018-11-09 10:03:32 +0100
commit74ebf6e34723573a23bf0e758978fb3969e362f8 (patch)
tree6abed2eb699e572c418d25d9969b2f4b083a83c0 /manifests/config_setting.pp
parent06e89ed3486916ae12186e46b8ec59c8c7c79142 (diff)
parentcabbf434c1778cb4e8fe2f7f726a012f707cd2a5 (diff)
Merge remote-tracking branch 'shared/master'HEADmaster
Diffstat (limited to 'manifests/config_setting.pp')
-rw-r--r--manifests/config_setting.pp18
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'];
+ }
+}