1 class roles::syncproxy {
2 include roles::archvsync_base
4 $binds = $::hostname ? {
5 'milanollo' => [ '5.153.231.9', '[2001:41c8:1000:21::21:9]' ],
6 'mirror-anu' => [ '150.203.164.60', '[2001:388:1034:2900::3c]' ],
7 'mirror-isc' => [ '149.20.4.16', '[2001:4f8:1:c::16]' ],
8 'mirror-umn' => [ '128.101.240.216', '[2607:ea00:101:3c0b::1deb:216]' ],
9 'klecker' => [ '130.89.148.10', '[2001:610:1908:b000::148:10]' ],
10 'gretchaninov' => [ '209.87.16.40', '[2607:f8f0:614:1::1274:40]' ],
11 default => [ '[::]' ],
13 $syncproxy_name = $::hostname ? {
14 'milanollo' => 'syncproxy3.eu.debian.org',
15 'mirror-anu' => 'syncproxy.au.debian.org',
16 'mirror-isc' => 'syncproxy2.wna.debian.org',
17 'mirror-umn' => 'syncproxy.cna.debian.org',
18 'klecker' => 'syncproxy2.eu.debian.org',
19 'gretchaninov' => 'syncproxy3.wna.debian.org',
27 file { '/etc/rsyncd/debian.secrets':
33 if $::apache2 and $syncproxy_name != 'unknown' {
35 ssl::service { "$syncproxy_name":
36 notify => Exec['service apache2 reload'],
39 apache2::site { '010-syncproxy.debian.org':
40 site => 'syncproxy.debian.org',
41 content => template('roles/syncproxy/syncproxy.debian.org-apache.erb')
44 file { [ '/srv/www/syncproxy.debian.org', '/srv/www/syncproxy.debian.org/htdocs' ]:
48 file { '/srv/www/syncproxy.debian.org/htdocs/index.html':
49 content => template('roles/syncproxy/syncproxy.debian.org-index.html.erb')
52 rsync::site { 'syncproxy':
53 content => template('roles/syncproxy/rsyncd.conf.erb'),
55 sslname => "$syncproxy_name",
58 rsync::site { 'syncproxy':
59 content => template('roles/syncproxy/rsyncd.conf.erb'),