Puppet Class: rsync::server::stunnel
- Defined in:
- modules/rsync/manifests/server/stunnel.pp
Summary
deploy stunnel rsync wrapperOverview
SPDX-License-Identifier: Apache-2.0
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'modules/rsync/manifests/server/stunnel.pp', line 4
class rsync::server::stunnel(
Wmflib::Ensure $ensure = present,
Stdlib::Ensure::Service $ensure_service = 'running',
) {
include rsync::server
ensure_packages(['stunnel4'])
file { '/etc/stunnel/rsync.conf':
ensure => present,
mode => '0444',
owner => 'root',
group => 'root',
content => template('rsync/stunnel.conf.erb'),
}
file_line { 'enable_stunnel':
ensure => present,
path => '/etc/default/stunnel4',
line => 'ENABLED=1 # Managed by puppet',
match => '^ENABLED=',
multiple => false,
}
service { 'stunnel4':
ensure => $ensure_service,
enable => true,
subscribe => [
Concat[$rsync::server::rsync_conf],
File['/etc/default/rsync', '/etc/stunnel/rsync.conf'],
File_line['enable_stunnel'],
Package['stunnel4'],
],
}
}
|