14 $fname_real = "/etc/rsyncd-${name}.conf"
20 default: { fail ( "Invald ensure `${ensure}' for ${name}" ) }
23 if ($source and $content) {
24 fail ( "Can't define both source and content for ${name}" )
38 fail ( "Can't find config for ${name}" )
41 xinetd::service { "rsync-${name}":
43 id => "${name}-rsync",
44 server => '/usr/bin/rsync',
46 server_args => "--daemon --config=${fname_real}",
48 instances => $max_clients,
49 require => File[$fname_real]
54 fail("Cannot listen on * and a specific ipv6 address")
56 xinetd::service { "rsync-${name}6":
58 id => "${name}-rsync6",
59 server => '/usr/bin/rsync',
61 server_args => "--daemon --config=${fname_real}",
63 instances => $max_clients,
64 require => File[$fname_real]
68 Service['rsync']->Service['xinetd']