--- /dev/null
+uid = nobody
+gid = nogroup
+max connections = 25
+syslog facility = daemon
+socket options = SO_KEEPALIVE
+timeout = 7200
+log file = /var/log/rsyncd/rsyncd-ports-master.log
+
+[debian-ports]
+ path = /srv/ports-master.debian.org/ftp/debian-ports
+ comment = debian-ports tree - see https://www.ports.debian.org/
+ auth users = *
+ read only = true
+ secrets file = /etc/rsyncd/ftp.secrets
+
+[debian-ports-cd]
+ path = /srv/ports-master.debian.org/ftp/debian-ports-cd
+ comment = debian-ports-cd tree - see https://www.ports.debian.org/
+ auth users = *
+ read only = true
+ secrets file = /etc/rsyncd/ftp.secrets
--- /dev/null
+class roles::ports-master {
+ rsync::site { 'ports-master':
+ source => 'puppet:///modules/roles/ports-master/rsyncd.conf',
+ max_clients => 100,
+ sslname => 'ports-master.debian.org',
+ }
+
+ ssl::service { 'ports-master.debian.org':
+ key => true,
+ }
+
+ file { '/etc/rsyncd':
+ ensure => 'directory'
+ }
+
+ file { '/etc/rsyncd/debian.secrets':
+ owner => 'root',
+ group => 'mirroradm',
+ mode => 0660,
+ }
+}