From 0ccff471a3e669992431f81463c21602cfb515b0 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Wed, 16 May 2012 19:46:35 +0100 Subject: [PATCH] add backports_master Signed-off-by: Stephen Gran --- .../roles/files/backports_master/rsyncd.conf | 21 +++++++++++++++++++ modules/roles/manifests/backports_master.pp | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 modules/roles/files/backports_master/rsyncd.conf 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, + } } -- 2.20.1