1 class roles::ports_mirror(
2 String $vhost_listen = '*:80',
3 Boolean $onion_service = false,
4 Optional[Stdlib::IP::Address] $onion_addr = undef,
6 include roles::archvsync_base
10 $mirror_basedir_prefix = hiera('role_config__mirrors.mirror_basedir_prefix')
11 $archive_root = "${mirror_basedir_prefix}debian-ports"
13 apache2::site { '010-ftp.ports.debian.org':
14 site => 'ftp.ports.debian.org',
15 content => template('roles/apache-ftp.ports.debian.org.erb'),
20 fail("Do not have an onion_addr set for ${::hostname}.")
23 onion::service { 'ftp.ports.debian.org':
26 target_address => $onion_addr,