1 class roles::historical_mirror {
2 include apache2::expires
4 $vhost_listen = $::hostname ? {
7 $onion_v4_addr = $::hostname ? {
10 $archive_root = $::hostname ? {
11 default => '/srv/mirrors/debian-archive',
14 apache2::site { '010-archive.debian.org':
15 site => 'archive.debian.org',
16 content => template('roles/apache-archive.debian.org.erb'),
19 if has_role('historical_mirror_onion') {
21 fail("Do not have an onion_v4_addr set for $::hostname.")
24 onion::service { 'archive.debian.org':
27 target_address => $onion_v4_addr,