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 '[2001:67c:2564:a119::148:10]' ],
11 'gretchaninov' => [ '209.87.16.40', '[2607:f8f0:614:1::1274:40]' ],
12 default => [ '[::]' ],
14 $syncproxy_name = $::hostname ? {
15 'milanollo' => 'syncproxy3.eu.debian.org',
16 'mirror-anu' => 'syncproxy.au.debian.org',
17 'mirror-isc' => 'syncproxy2.wna.debian.org',
18 'mirror-umn' => 'syncproxy.cna.debian.org',
19 'klecker' => 'syncproxy2.eu.debian.org',
20 'gretchaninov' => 'syncproxy3.wna.debian.org',
28 file { '/etc/rsyncd/debian.secrets':
34 if $::apache2 and $syncproxy_name != 'unknown' {
36 ssl::service { "$syncproxy_name":
37 notify => Exec['service apache2 reload'],
40 apache2::site { '010-syncproxy.debian.org':
41 site => 'syncproxy.debian.org',
42 content => template('roles/syncproxy/syncproxy.debian.org-apache.erb')
45 file { [ '/srv/www/syncproxy.debian.org', '/srv/www/syncproxy.debian.org/htdocs' ]:
49 file { '/srv/www/syncproxy.debian.org/htdocs/index.html':
50 content => template('roles/syncproxy/syncproxy.debian.org-index.html.erb')
53 rsync::site { 'syncproxy':
54 content => template('roles/syncproxy/rsyncd.conf.erb'),
56 sslname => "$syncproxy_name",
59 rsync::site { 'syncproxy':
60 content => template('roles/syncproxy/rsyncd.conf.erb'),