1 class roles::security_mirror {
2 $rsync_bind = $::hostname ? {
3 mirror-anu => '150.203.164.61',
4 mirror-isc => '149.20.20.19',
5 mirror-umn => '128.101.240.215',
8 $rsync_bind6 = $::hostname ? {
9 mirror-anu => '2001:388:1034:2900::3d',
10 mirror-isc => '2001:4f8:8:36::1deb:19',
11 mirror-umn => '2607:ea00:101:3c0b::1deb:215',
14 $ftp_bind = $::hostname ? {
15 mirror-anu => '150.203.164.61',
18 $ftp_bind6 = $::hostname ? {
19 mirror-anu => '2001:388:1034:2900::3d',
23 include apache2::cache
24 apache2::site { '010-security.debian.org':
25 site => 'security.debian.org',
26 content => template('roles/security_mirror/security.debian.org.erb')
29 include ferm::ftp_conntrack
30 vsftpd::site { 'security':
31 banner => 'security.debian.org FTP server (vsftpd)',
32 logfile => '/var/log/ftp/vsftpd-security.debian.org.log',
34 root => '/srv/ftp.root/',
38 vsftpd::site { 'security6':
39 banner => 'security.debian.org FTP server (vsftpd)',
40 logfile => '/var/log/ftp/vsftpd-security6.debian.org.log',
42 root => '/srv/ftp.root/',
47 rsync::site { 'security':
48 source => 'puppet:///modules/roles/security_mirror/rsyncd.conf',
51 bind6 => $rsync_bind6,
55 $onion_v4_addr = $::hostname ? {
56 mirror-anu => '150.203.164.61',
57 mirror-isc => '149.20.20.19',
58 mirror-umn => '128.101.240.215',
59 villa => '212.211.132.32',
60 lobos => '212.211.132.250',
63 if has_role('security_mirror_onion') {
65 fail("Do not have an onion_v4_addr set for $::hostname.")
68 onion::service { 'security.debian.org':
71 target_address => $onion_v4_addr,