1 class roles::historical_mirror {
2 include apache2::expires
4 $vhost_listen = $::hostname ? {
5 klecker => '130.89.148.13:80 2001:610:1908:b000::148:13:80',
8 $onion_v4_addr = $::hostname ? {
11 $archive_root = $::hostname ? {
12 default => '/srv/mirrors/debian-archive',
15 apache2::site { '010-archive.debian.org':
16 site => 'archive.debian.org',
17 content => template('roles/apache-archive.debian.org.erb'),
20 if has_role('historical_mirror_onion') {
22 fail("Do not have an onion_v4_addr set for $::hostname.")
25 onion::service { 'archive.debian.org':
28 target_address => $onion_v4_addr,