be sure to include tinc so we can reference variable ($use_shorewall)

This commit is contained in:
mh 2015-01-03 21:32:45 +01:00
parent c1bd9b7616
commit ad0c61388d
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# configure base tinc
class tinc(
$use_shorewall = false,
$key_source_path = '/var/lib/puppet/tinc_keys',
$use_shorewall = false,
$key_source_path = '/var/lib/puppet/tinc_keys',
) {
if $::operatingsystem == 'CentOS' and $::operatingsystemmajrelease > 6 {
$uses_systemd = true

View file

@ -24,6 +24,7 @@ define tinc::switch(
}
if $ensure == 'present' {
include ::tinc
require bridge_utils
$real_tinc_bridge_interface = $tinc_bridge_interface ? {
'absent' => "br${name}",