From bcb73dd2ace2b5d7766e91c1a6d744a1ecc9e255 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 11 May 2022 09:57:46 +1000 Subject: [PATCH] mirror-update: switch Fedora mirror In our onging quest to find a stable upstream source, switch this to the facebook mirror which seems to have been working well enough for centos. While we're here, reduce the frequency a bit as there's no need to sync every two hours; it's a bit unfriendly to the remote end. Change-Id: I50f38b58b3f0c0557fb1e2e0667a17a4f1d1dec6 --- playbooks/roles/mirror-update/files/fedora-mirror-update | 2 +- playbooks/roles/mirror-update/tasks/rsync.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/mirror-update/files/fedora-mirror-update b/playbooks/roles/mirror-update/files/fedora-mirror-update index 4778438a46..30a455b937 100755 --- a/playbooks/roles/mirror-update/files/fedora-mirror-update +++ b/playbooks/roles/mirror-update/files/fedora-mirror-update @@ -30,7 +30,7 @@ BASE="/afs/.openstack.org/mirror/fedora" # because upstream starting putting setgid bits on directories, # which you have to have admin permissions in AFS to set. # https://pagure.io/releng/issue/7921 -MIRROR="rsync://mirrors.us.kernel.org/fedora" +MIRROR="rsync://mirror.facebook.net/fedora/linux" K5START="k5start -t -f /etc/fedora.keytab service/fedora-mirror -- ${TIMEOUT}" echo_ts "----- START FEDORA MIRROR RSYNC RUN -----" diff --git a/playbooks/roles/mirror-update/tasks/rsync.yaml b/playbooks/roles/mirror-update/tasks/rsync.yaml index 229df4bd97..3307828fd6 100644 --- a/playbooks/roles/mirror-update/tasks/rsync.yaml +++ b/playbooks/roles/mirror-update/tasks/rsync.yaml @@ -49,7 +49,7 @@ name: '{{ item }} mirror sync' state: present job: 'flock -n /var/run/{{ item }}-mirror.lock {{ item }}-mirror-update mirror.{{ item }} >> /var/log/rsync-mirrors/{{ item }}.log 2>&1' - hour: '*/2' + hour: '*/6' minute: '{{ 45 | random(seed=item) }}' loop: '{{ rsync_update_scripts }}'