X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fhistorical_mirror.pp;h=b6fc7006c45f51ca9c003fc258af9e0ccebd4069;hb=8f3280dc37053bf34c4c09cd615412f8a17e1a06;hp=6bd1be2e38268344656e573abb8ba9c189366eca;hpb=747839287a544fb8413d96108ed11f313628f89d;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/historical_mirror.pp b/modules/roles/manifests/historical_mirror.pp index 6bd1be2e3..b6fc7006c 100644 --- a/modules/roles/manifests/historical_mirror.pp +++ b/modules/roles/manifests/historical_mirror.pp @@ -2,25 +2,13 @@ class roles::historical_mirror { include roles::archvsync_base include apache2::expires - $rsync_bind = $::hostname ? { - gretchaninov => '209.87.16.41', - klecker => '130.89.148.13', - mirror-conova => '217.196.149.234', - sibelius => '193.62.202.28', - default => '', - } - $rsync_bind6 = $::hostname ? { - gretchaninov => '2607:f8f0:614:1::1274:41', - klecker => '2001:610:1908:b000::148:13', - mirror-conova => '2a02:16a8:dc41:100::234', - sibelius => '2001:630:206:4000:1a1a:0:c13e:ca1c', - default => '', - } - - $vhost_listen = join([ - ($rsync_bind == '') ? { true => "*:80", default => "$rsync_bind:80" }, - ($rsync6_bind == '') ? { true => "*:80", default => "[$rsync6_bind]:80" } - ], ' ') + $binds = $::hostname ? { + gretchaninov => ['209.87.16.41' , '[2607:f8f0:614:1::1274:41]' ], + klecker => ['130.89.148.13' , '[2001:610:1908:b000::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 => ['[::]'], } $onion_v4_addr = $::hostname ? { @@ -42,15 +30,14 @@ class roles::historical_mirror { tlsaport => [], } } else { - $sslname = '' + $sslname = undef } - rsync::site_systemd { 'archive': + rsync::site { 'archive': source => 'puppet:///modules/roles/historical_mirror/rsyncd.conf', max_clients => 100, sslname => $sslname, - bind => $rsync_bind, - bind6 => $rsync_bind6, + binds => $binds, } if has_role('historical_mirror_onion') {