diff options
Diffstat (limited to 'modules/rsyncd')
| -rw-r--r-- | modules/rsyncd/manifests/init.pp | 10 | ||||
| -rw-r--r-- | modules/rsyncd/templates/xinetd | 6 |
2 files changed, 9 insertions, 7 deletions
diff --git a/modules/rsyncd/manifests/init.pp b/modules/rsyncd/manifests/init.pp index 309072b6..5cc9e2fd 100644 --- a/modules/rsyncd/manifests/init.pp +++ b/modules/rsyncd/manifests/init.pp @@ -1,12 +1,12 @@ class rsyncd($rsyncd_conf = 'rsyncd/rsyncd.conf') { - xinetd::service { "rsync": - content => template("rsyncd/xinetd") + xinetd::service { 'rsync': + content => template('rsyncd/xinetd') } - file { "rsyncd.conf": - path => "/etc/rsyncd.conf", - require => Package["rsync"], + file { 'rsyncd.conf': + path => '/etc/rsyncd.conf', + require => Package['rsync'], content => template($rsyncd_conf) } } diff --git a/modules/rsyncd/templates/xinetd b/modules/rsyncd/templates/xinetd index 7b15520d..b477e413 100644 --- a/modules/rsyncd/templates/xinetd +++ b/modules/rsyncd/templates/xinetd @@ -1,4 +1,3 @@ -# $Id: xinetd 319 2009-02-28 17:05:16Z guillomovitch $ service rsync { disable = no @@ -8,6 +7,9 @@ service rsync server = /usr/bin/rsync server_args = --daemon log_on_failure += USERID - flags = IPv6 + flags = IPv6 + # some mirrors do not seems to use locks when downloading from + # us and try to download the same stuff 15 times in a row + per_source = 4 } |
