module-tinc/manifests/centos.pp

34 lines
947 B
ObjectPascal
Raw Normal View History

2014-12-28 13:51:14 +01:00
# manage centos specific things
class tinc::centos inherits tinc::base {
2014-12-28 13:51:14 +01:00
if $tinc::uses_systemd {
file{'/etc/systemd/system/tincd@.service':
source => 'puppet:///modules/tinc/CentOS/tinc.systemd',
require => Package['tinc'],
2014-12-28 13:51:14 +01:00
owner => root,
group => 0,
mode => '0644';
}
# systemd manages per instance
Service['tinc'] {
ensure => undef,
enable => false,
}
} else {
file {
'/etc/sysconfig/tinc' :
source => [ "puppet:///modules/site_tinc/CentOS/${::fqdn}/tinc.sysconfig",
'puppet:///modules/site_tinc/tinc.sysconfig',
"puppet:///modules/tinc/${::operatingsystem}/tinc.sysconfig"],
require => Package['tinc'],
notify => Service['tinc'],
owner => root,
group => 0,
mode => '0644';
}
Service['tinc'] {
hasstatus => true,
hasrestart => true
}
2010-10-23 02:25:23 +02:00
}
}