2014-12-28 13:51:14 +01:00
|
|
|
# configure base tinc
|
2012-06-14 15:42:51 +02:00
|
|
|
class tinc(
|
2015-01-03 21:32:45 +01:00
|
|
|
$use_shorewall = false,
|
|
|
|
$key_source_path = '/var/lib/puppet/tinc_keys',
|
2012-06-14 15:42:51 +02:00
|
|
|
) {
|
2014-12-28 13:51:14 +01:00
|
|
|
if $::operatingsystem == 'CentOS' and $::operatingsystemmajrelease > 6 {
|
|
|
|
$uses_systemd = true
|
|
|
|
} else {
|
|
|
|
$uses_systemd = false
|
|
|
|
}
|
2012-02-09 16:13:23 +01:00
|
|
|
case $::operatingsystem {
|
2012-02-09 18:07:19 +01:00
|
|
|
centos: { include tinc::centos }
|
|
|
|
debian: { include tinc::debian }
|
|
|
|
default: { include tinc::base }
|
2010-08-31 17:54:24 +02:00
|
|
|
}
|
2015-01-03 21:23:07 +01:00
|
|
|
if $use_shorewall {
|
2010-08-31 17:54:24 +02:00
|
|
|
include shorewall::rules::tinc
|
|
|
|
}
|
|
|
|
}
|