module-tinc/manifests/centos.pp

24 lines
718 B
Puppet

class tinc::centos inherits tinc::base {
file{'/etc/init.d/tinc':
source => "puppet:///modules/tinc/${operatingsystem}/tinc.init",
require => Package['tinc'],
before => Service['tinc'],
owner => root, group => 0, mode => 0755;
}
Service['tinc']{
hasstatus => true,
require => [ User['tinc'], File['/etc/init.d/tinc'] ]
}
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;
}
}