1 class roles::historical_mirror {
2 $vhost_listen = $::hostname ? {
5 $onion_v4_addr = $::hostname ? {
8 $archive_root = $::hostname ? {
9 default => '/srv/mirrors/debian-archive',
12 apache2::site { '010-archive.debian.org':
13 site => 'archive.debian.org',
14 content => template('roles/apache-archive.debian.org.erb'),
17 if has_role('historical_mirror_onion') {
19 fail("Do not have an onion_v4_addr set for $::hostname.")
22 onion::service { 'archive.debian.org':
25 target_address => $onion_v4_addr,