X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Frsync%2Fmanifests%2Fsite.pp;fp=modules%2Frsync%2Fmanifests%2Fsite.pp;h=c534b372bf1a38a51ec73dfb9cea8fcd1692df94;hb=db7f690e78e841650e026edc9f59d3aa5b07c11d;hp=bb2ee1446170260dab55fa5bd34b38e07e8f6196;hpb=5d0d9fe522742878293dc126f611f1efdc1d03ac;p=dsa-puppet.git diff --git a/modules/rsync/manifests/site.pp b/modules/rsync/manifests/site.pp index bb2ee144..c534b372 100644 --- a/modules/rsync/manifests/site.pp +++ b/modules/rsync/manifests/site.pp @@ -1,5 +1,6 @@ define rsync::site ( $bind='', + $bind6='', $source='', $content='', $fname='', @@ -48,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'] }