summaryrefslogtreecommitdiff
path: root/manifests/config_setting.pp
blob: 5eecf427c8b46e13f4b98cf3e7ea700351552a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'];
  }
}