xinetd::service { "rsync-${name}":
bind => $bind,
- bind6 => $bind6,
id => "${name}-rsync",
server => '/usr/bin/rsync',
port => 'rsync',
require => File[$fname_real]
}
+ if $bind6 != '' {
+ if $bind == '' {
+ fail("Cannot listen on * and a specific ipv6 address")
+ }
+ xinetd::service { "rsync-${name}6":
+ bind => $bind6,
+ id => "${name}-rsync6",
+ server => '/usr/bin/rsync',
+ port => 'rsync',
+ server_args => "--daemon --config=${fname_real}",
+ ferm => false,
+ instances => $max_clients,
+ require => File[$fname_real]
+ }
+ }
+
Service['rsync']->Service['xinetd']
}