diff options
author | mh <mh@immerda.ch> | 2013-01-02 19:46:52 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-01-02 19:48:56 +0100 |
commit | eac5a3c28c4773531964f77e25291c88efcc5e12 (patch) | |
tree | 4a76241c9737623a989dccdaa5bb46b66264fd4d /manifests | |
parent | 3d2e75b8b438dff6f32ce22664b148b6a5ca365e (diff) | |
download | puppet-shorewall-eac5a3c28c4773531964f77e25291c88efcc5e12.tar.gz puppet-shorewall-eac5a3c28c4773531964f77e25291c88efcc5e12.tar.bz2 |
provide an easy option to still manage the source of the central conf file
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/base.pp | 6 | ||||
-rw-r--r-- | manifests/init.pp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index 52e77d8..4324553 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -16,6 +16,12 @@ class shorewall::base { owner => root, group => 0, mode => 0644; } + if $shorewall::conf_source { + File['/etc/shorewall/shorewall.conf']{ + source => $shorewall::conf_source, + } + } + augeas { 'shorewall_module_config_path': changes => 'set /files/etc/shorewall/shorewall.conf/CONFIG_PATH \'"/etc/shorewall/puppet:/etc/shorewall:/usr/share/shorewall"\'', lens => 'Shellvars.lns', diff --git a/manifests/init.pp b/manifests/init.pp index 63e6fd3..13eea89 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,5 +1,6 @@ class shorewall( $startup = '1', + $conf_source = false, $ensure_version = 'present', $tor_transparent_proxy_host = '127.0.0.1', $tor_transparent_proxy_port = '9040', |