X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fhistorical_mirror.pp;h=86fbcb3bd132db5a0b72f6b52405b8c2d380877c;hb=f7f9a79a4a29afeb59229670b2ad92bb9c209f92;hp=ccf34dbce4f33d7aa72dad29d23b8939ea5e1769;hpb=46efb1d7284108553bc312019338f574a940030e;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/historical_mirror.pp b/modules/roles/manifests/historical_mirror.pp index ccf34dbce..86fbcb3bd 100644 --- a/modules/roles/manifests/historical_mirror.pp +++ b/modules/roles/manifests/historical_mirror.pp @@ -2,9 +2,12 @@ class roles::historical_mirror { include roles::archvsync_base include apache2::expires + $mirror_basedir_prefix = hiera('role_config__mirrors.mirror_basedir_prefix') + $archive_root = "${mirror_basedir_prefix}debian-archive" + $binds = $::hostname ? { gretchaninov => ['209.87.16.41' , '[2607:f8f0:614:1::1274:41]' ], - klecker => ['130.89.148.13' , '[2001:610:1908:b000::148:13]' ], + klecker => ['130.89.148.13' , '[2001:67c:2564:a119::148:13]' ], mirror-conova => ['217.196.149.234', '[2a02:16a8:dc41:100::234]' ], sibelius => ['193.62.202.28' , '[2001:630:206:4000:1a1a:0:c13e:ca1c]'], default => ['[::]'], @@ -13,9 +16,6 @@ class roles::historical_mirror { $onion_v4_addr = $::hostname ? { default => undef, } - $archive_root = $::hostname ? { - default => '/srv/mirrors/debian-archive', - } apache2::site { '010-archive.debian.org': site => 'archive.debian.org', @@ -33,7 +33,7 @@ class roles::historical_mirror { } rsync::site { 'archive': - source => 'puppet:///modules/roles/historical_mirror/rsyncd.conf', + content => template('roles/historical_mirror/rsyncd.conf.erb'), max_clients => 100, sslname => $sslname, binds => $binds,