ensure => $ensure,
content => $content,
source => $source,
- owner => 'root',
- group => 'root',
- mode => '0444',
}
$service_file = "/etc/systemd/system/rsyncd-${name}@.service"
file { $service_file:
ensure => $ensure,
content => template('rsync/systemd-rsyncd.service.erb'),
- owner => 'root',
- group => 'root',
- mode => '0444',
require => File[$fname_real_rsync],
notify => Exec['systemctl daemon-reload'],
}
file { $socket_file:
ensure => $ensure,
content => template('rsync/systemd-rsyncd.socket.erb'),
- owner => 'root',
- group => 'root',
- mode => '0444',
notify => Exec['systemctl daemon-reload'],
}
file { $fname_real_stunnel:
ensure => $ensure,
content => template('rsync/systemd-rsyncd-stunnel.conf.erb'),
- owner => 'root',
- group => 'root',
- mode => '0444',
require => File["/etc/ssl/debian/certs/${sslname}.crt-chained"],
}
file { "/etc/systemd/system/rsyncd-${name}-stunnel@.service":
ensure => $ensure,
content => template('rsync/systemd-rsyncd-stunnel.service.erb'),
- owner => 'root',
- group => 'root',
- mode => '0444',
require => File[$fname_real_stunnel],
notify => Exec['systemctl daemon-reload'],
}
file { "/etc/systemd/system/rsyncd-${name}-stunnel.socket":
ensure => $ensure,
content => template('rsync/systemd-rsyncd-stunnel.socket.erb'),
- owner => 'root',
- group => 'root',
- mode => '0444',
notify => [
Exec['systemctl daemon-reload'],
Service["rsyncd-${name}-stunnel.socket"]