- rule => "&SERVICE(tcp, $sslport)",
- }
- xinetd::service { "rsync-${name}-ssl":
- bind => $bind,
- id => "rsync-${name}-ssl",
- server => '/usr/bin/stunnel4',
- server_args => "/etc/rsyncd-${name}-stunnel.conf",
- service => "rsync-ssl",
- type => 'UNLISTED',
- port => "$sslport",
- ferm => true,
- instances => $max_clients,
- require => File["/etc/rsyncd-${name}-stunnel.conf"],
- }
- if $bind6 != '' {
- xinetd::service { "rsync-${name}-ssl6":
- bind => $bind6,
- id => "rsync-${name}-ssl6",
- server => '/usr/bin/stunnel4',
- server_args => "/etc/rsyncd-${name}-stunnel.conf",
- service => "rsync-ssl",
- type => 'UNLISTED',
- port => "$sslport",
- ferm => true,
- instances => $max_clients,
- require => File["/etc/rsyncd-${name}-stunnel.conf"],
- }