1 class roles::security_mirror {
2 include roles::archvsync_base
4 $binds = $::hostname ? {
5 mirror-anu => [ '150.203.164.61', '[2001:388:1034:2900::3d]' ],
6 mirror-bytemark => [ '5.153.231.46', '[2001:41c8:1000:21::21:46]' ],
7 mirror-conova => [ '217.196.149.233', '[2a02:16a8:dc41:100::233]' ],
8 mirror-isc => [ '149.20.4.14', '[2001:4f8:1:c::14]' ],
9 mirror-umn => [ '128.101.240.215', '[2607:ea00:101:3c0b::1deb:215]' ],
10 default => [ '[::]' ],
13 file { '/srv/mirrors/debian-security':
15 target => '../ftp.root/debian-security',
17 file { '/srv/ftp.root':
20 file { '/srv/ftp.root/.nobackup':
24 file { '/srv/ftp.root/debian-security':
26 owner => 1176, # archvsync
27 group => 1176, # archvsync
31 include apache2::expires
32 include apache2::rewrite
34 apache2::site { '010-security.debian.org':
35 site => 'security.debian.org',
36 content => template('roles/security_mirror/security.debian.org.erb')
39 vsftpd::site { 'security':
41 root => '/nonexistent',
44 rsync::site { 'security':
45 source => 'puppet:///modules/roles/security_mirror/rsyncd.conf',
50 $onion_v4_addr = $::hostname ? {
51 mirror-anu => '150.203.164.61',
52 mirror-isc => '149.20.4.14',
53 mirror-umn => '128.101.240.215',
54 villa => '212.211.132.32',
55 lobos => '212.211.132.250',
58 if has_role('security_mirror_onion') {
60 fail("Do not have an onion_v4_addr set for $::hostname.")
63 onion::service { 'security.debian.org':
66 target_address => $onion_v4_addr,