1 class roles::security_mirror {
2 include roles::archvsync_base
4 $rsync_bind = $::hostname ? {
5 mirror-anu => '150.203.164.61',
6 mirror-isc => '149.20.4.14',
7 mirror-umn => '128.101.240.215',
10 $rsync_bind6 = $::hostname ? {
11 mirror-anu => '2001:388:1034:2900::3d',
12 mirror-isc => '2001:4f8:1:c::14',
13 mirror-umn => '2607:ea00:101:3c0b::1deb:215',
16 $ftp_bind = $::hostname ? {
17 mirror-anu => '150.203.164.61',
20 $ftp_bind6 = $::hostname ? {
21 mirror-anu => '2001:388:1034:2900::3d',
25 file { '/srv/mirrors/debian-security':
27 target => '../ftp.root/debian-security',
30 include apache2::expires
31 include apache2::rewrite
33 apache2::site { '010-security.debian.org':
34 site => 'security.debian.org',
35 content => template('roles/security_mirror/security.debian.org.erb')
38 include ferm::ftp_conntrack
39 vsftpd::site { 'security':
40 banner => 'security.debian.org FTP server (vsftpd)',
41 logfile => '/var/log/ftp/vsftpd-security.debian.org.log',
43 root => '/srv/ftp.root/',
47 vsftpd::site { 'security6':
48 banner => 'security.debian.org FTP server (vsftpd)',
49 logfile => '/var/log/ftp/vsftpd-security6.debian.org.log',
51 root => '/srv/ftp.root/',
56 rsync::site { 'security':
57 source => 'puppet:///modules/roles/security_mirror/rsyncd.conf',
60 bind6 => $rsync_bind6,
63 $onion_v4_addr = $::hostname ? {
64 mirror-anu => '150.203.164.61',
65 mirror-isc => '149.20.4.14',
66 mirror-umn => '128.101.240.215',
67 villa => '212.211.132.32',
68 lobos => '212.211.132.250',
71 if has_role('security_mirror_onion') {
73 fail("Do not have an onion_v4_addr set for $::hostname.")
76 onion::service { 'security.debian.org':
79 target_address => $onion_v4_addr,