X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fhistorical_mirror.pp;h=e3ed4ef6c850223c4c6f5902544119582217c241;hb=03790f1caf07cceea0ae503a261106a5811ccc20;hp=b6fc7006c45f51ca9c003fc258af9e0ccebd4069;hpb=8f3280dc37053bf34c4c09cd615412f8a17e1a06;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/historical_mirror.pp b/modules/roles/manifests/historical_mirror.pp index b6fc7006c..e3ed4ef6c 100644 --- a/modules/roles/manifests/historical_mirror.pp +++ b/modules/roles/manifests/historical_mirror.pp @@ -2,6 +2,9 @@ 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]', @@ -14,9 +17,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', @@ -34,7 +34,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,