MM: use different crawls to include or exclude disabled hosts

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-03-08 08:55:04 +01:00
parent 9c36c59872
commit 3762d3f7d1
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
3 changed files with 26 additions and 4 deletions

View file

@ -30,6 +30,7 @@ spec:
- "{{ cronjob.timeout }}"
- "--category"
- "{{ cronjob.category }}"
- "--{{ cronjob.include_disabled | ternary('include', 'exclude') }}-disabled"
- "crawl"
env:
# Defaults to 80 columns, not very readable

View file

@ -84,7 +84,7 @@ fi
# Rerun scan after 24 hours
if [ "$LASTRUN" -gt "$FILEDATE" ] && [ "$LASTRUN" -gt $(expr $CURDATE - 86400) ]; then
# no changes on the master mirror
echo "No changes on the master mirror (${FFTL})"
# abort
exit 0
fi

View file

@ -6,29 +6,50 @@ mirrormanager_oidc_client_id: "mirrormanager"
mm2_checkin: false
mirrormanager_cron_crawler:
- category: "Fedora Linux"
schedule: "0 */12 * * *"
schedule: "0 */12 * * 1-6"
threads: 40
timeout: 600
include_disabled: false
- category: "Fedora Linux"
schedule: "0 */12 * * 7"
threads: 40
timeout: 660
include_disabled: true
- category: "Fedora Secondary Arches"
schedule: "0 3,9 * * *"
threads: 10
timeout: 300
include_disabled: false
- category: "Fedora EPEL"
schedule: "45 */6 * * *"
schedule: "45 */6 * * 1-6"
threads: 20
timeout: 300
include_disabled: false
- category: "Fedora EPEL"
schedule: "45 */6 * * 7"
threads: 20
timeout: 300
include_disabled: true
- category: "Fedora Archive"
schedule: "0 2 * * *"
threads: 10
timeout: 600
include_disabled: false
- category: "Fedora Other"
schedule: "0 14 * * *"
threads: 20
timeout: 600
include_disabled: false
- category: "CentOS"
schedule: "0 5,11 * * *"
schedule: "0 5,11 * * 1-6"
threads: 20
timeout: 300
include_disabled: false
- category: "CentOS"
schedule: "0 5,11 * * 7"
threads: 20
timeout: 300
include_disabled: true
mirrormanager_cron_primary_mirror:
# check if category Fedora Linux needs updating every 30 minutes
- category: "fedora"