Puppet Class: stunnel::service
- Defined in:
- manifests/service.pp
Overview
Manage the Stunnel Service
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'manifests/service.pp', line 5
class stunnel::service {
if 'systemd' in $facts['init_systems'] {
file { '/etc/rc.d/init.d/stunnel': ensure => 'absent' }
service { 'stunnel':
ensure => running,
enable => true,
require => [
File['/etc/systemd/system/stunnel.service'],
File['/etc/rc.d/init.d/stunnel']
]
}
} else {
# The script takes care of chkconfig
service { 'stunnel':
ensure => running,
enable => true,
require => File['/etc/rc.d/init.d/stunnel']
}
}
}
|