Skip to content
Snippets Groups Projects
Commit 4773f92c authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Sync debug packages to our sponsored mirrors[1]

The sponsored mirrors have a ton of storage, but mirror.pkgbuild.com
doesn't, so debug packages aren't synced to it.

[1] {america,asia,europe}.mirror.pkgbuild.com
parent 8dc96b57
No related branches found
No related tags found
1 merge request!168debuginfod: Implement role
---
mirror_domain: mirror.pkgbuild.com
mirror_debug_packages: false
archweb_mirrorcheck_locations: [20, 21]
filesystem: btrfs
......
......@@ -9,6 +9,7 @@
- { role: certbot }
- { role: nginx }
- { role: syncrepo, tags: ['nginx'] }
- { role: syncdebug, when: mirror_debug_packages is not defined or mirror_debug_packages }
- { role: archweb, archweb_site: false, archweb_services: false, archweb_mirrorcheck: true }
- { role: prometheus_exporters }
- { role: promtail }
......
......@@ -96,8 +96,8 @@ hosts deny = *
path = /srv/ftp
comment = debug packages
exclude = *
include = /pool /pool/*-debug/***
hosts allow = {{ hostvars['debuginfod.archlinux.org']['ipv4_address'] }} {{ hostvars['debuginfod.archlinux.org']['ipv6_address'] }}
include = /*-debug/*** /pool /pool/*-debug/***
hosts allow = {{ groups['mirrors'] | map('extract', hostvars, ['ipv4_address']) | join(' ') }} {{ groups['mirrors'] | map('extract', hostvars, ['ipv6_address']) | join(' ') }} {{ hostvars['debuginfod.archlinux.org']['ipv4_address'] }} {{ hostvars['debuginfod.archlinux.org']['ipv6_address'] }}
max connections = 0
# Individual repositories
......
......@@ -29,6 +29,9 @@ if ! tty -s && [[ -f "$target/lastupdate" ]] && diff -b <(curl -Ls "$lastupdate_
fi
rsync_cmd \
--exclude=".well-known" \
--include="*-debug/***" \
--include="pool/" \
--include="pool/*-debug/***" \
--exclude="*" \
"${source_url}" \
"${target}"
......@@ -5,3 +5,4 @@ syslog facility = local5
[packages]
path = /srv/ftp
comment = archlinux packages mirror
exclude = /*-debug/ /pool/*-debug/
......@@ -93,6 +93,7 @@ fi
rsync_cmd \
--exclude='/other' \
--exclude='/sources' \
--exclude='*-debug/' \
"${source_url}" \
"${target}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment