module-tinc/manifests/init.pp

20 lines
463 B
ObjectPascal
Raw Permalink Normal View History

2014-12-28 13:51:14 +01:00
# configure base tinc
2012-06-14 15:42:51 +02:00
class tinc(
$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
}
case $::operatingsystem {
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
}
}