Commit 3139e5a5 authored by mh's avatar mh Committed by Micah Anderson

only manage the config_path if we do not manage the config file

parent 13ddac1e
......@@ -20,16 +20,17 @@ class shorewall::base {
File['/etc/shorewall/shorewall.conf']{
source => $shorewall::conf_source,
}
}
} else {
require augeas
require augeas
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',
incl => '/etc/shorewall/shorewall.conf',
notify => Service[shorewall],
require => [ Package['shorewall'] ];
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',
incl => '/etc/shorewall/shorewall.conf',
notify => Service[shorewall],
require => Package['shorewall'];
}
}
service{shorewall:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment