From: Stephen Gran Date: Wed, 16 May 2012 18:46:35 +0000 (+0100) Subject: add backports_master X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=0ccff471a3e669992431f81463c21602cfb515b0;p=mirror%2Fdsa-puppet.git add backports_master Signed-off-by: Stephen Gran --- diff --git a/modules/roles/files/backports_master/rsyncd.conf b/modules/roles/files/backports_master/rsyncd.conf new file mode 100644 index 000000000..ed79313e5 --- /dev/null +++ b/modules/roles/files/backports_master/rsyncd.conf @@ -0,0 +1,21 @@ +uid = nobody +gid = nogroup +max connections = 20 +syslog facility = daemon +log file = /var/log/rsyncd/rsyncd.log +socket options = SO_KEEPALIVE +timeout = 7200 + +[debian-backports] + path = /srv/backports-master.debian.org/mirror + comment = Debian backports archive + read only = true + auth users = * + secrets file = /etc/rsyncd/ftp.secrets + +[exports] + path = /srv/backports-web.debian.org/export + comment = Various metadata exports + auth users = * + read only = true + secrets file = /etc/rsyncd/exports.secrets diff --git a/modules/roles/manifests/backports_master.pp b/modules/roles/manifests/backports_master.pp index 44c5d4496..98f927e86 100644 --- a/modules/roles/manifests/backports_master.pp +++ b/modules/roles/manifests/backports_master.pp @@ -9,4 +9,9 @@ class roles::backports_master { chown_user => dak, root => '/srv/backports-upload', } + + rsync::site { 'backports_master': + source => 'puppet:///modules/roles/backports_master/rsyncd.conf', + max_clients => 100, + } }