X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Frsync%2Fmanifests%2Fsite.pp;h=c534b372bf1a38a51ec73dfb9cea8fcd1692df94;hb=cdf648b13dacc11edd25af11c93a67dbe7097743;hp=6a4284a3ce846b2fa9819b5cc84355cf17867d20;hpb=aae8b555c902a217d68dc96ccd50ae6144e8e686;p=dsa-puppet.git diff --git a/modules/rsync/manifests/site.pp b/modules/rsync/manifests/site.pp index 6a4284a3..c534b372 100644 --- a/modules/rsync/manifests/site.pp +++ b/modules/rsync/manifests/site.pp @@ -40,7 +40,6 @@ define rsync::site ( xinetd::service { "rsync-${name}": bind => $bind, - bind6 => $bind6, id => "${name}-rsync", server => '/usr/bin/rsync', port => 'rsync', @@ -50,5 +49,21 @@ define rsync::site ( 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'] }