1 class roles::security_mirror {
2 include roles::archvsync_base
4 $rsync_bind = $::hostname ? {
5 mirror-anu => '150.203.164.61',
6 mirror-bytemark => '5.153.231.46',
7 mirror-conova => '217.196.149.233',
8 mirror-isc => '149.20.4.14',
9 mirror-umn => '128.101.240.215',
12 $rsync_bind6 = $::hostname ? {
13 mirror-anu => '2001:388:1034:2900::3d',
14 mirror-bytemark => '2001:41c8:1000:21::21:46',
15 mirror-conova => '2a02:16a8:dc41:100::233',
16 mirror-isc => '2001:4f8:1:c::14',
17 mirror-umn => '2607:ea00:101:3c0b::1deb:215',
20 $ftp_bind = $rsync_bind
21 $ftp_bind6 = $rsync_bind6
23 file { '/srv/mirrors/debian-security':
25 target => '../ftp.root/debian-security',
27 file { '/srv/ftp.root/.nobackup':
32 include apache2::expires
33 include apache2::rewrite
35 apache2::site { '010-security.debian.org':
36 site => 'security.debian.org',
37 content => template('roles/security_mirror/security.debian.org.erb')
40 if has_role('security_mirror_no_ftp') {
43 include ferm::ftp_conntrack
44 vsftpd::site { 'security':
45 banner => 'security.debian.org FTP server (vsftpd)',
46 logfile => '/var/log/ftp/vsftpd-security.debian.org.log',
48 root => '/srv/ftp.root/',
52 vsftpd::site { 'security6':
53 banner => 'security.debian.org FTP server (vsftpd)',
54 logfile => '/var/log/ftp/vsftpd-security6.debian.org.log',
56 root => '/srv/ftp.root/',
62 rsync::site { 'security':
63 source => 'puppet:///modules/roles/security_mirror/rsyncd.conf',
66 bind6 => $rsync_bind6,
69 $onion_v4_addr = $::hostname ? {
70 mirror-anu => '150.203.164.61',
71 mirror-isc => '149.20.4.14',
72 mirror-umn => '128.101.240.215',
73 villa => '212.211.132.32',
74 lobos => '212.211.132.250',
77 if has_role('security_mirror_onion') {
79 fail("Do not have an onion_v4_addr set for $::hostname.")
82 onion::service { 'security.debian.org':
85 target_address => $onion_v4_addr,