From 4a43ee1bd0df0a6a25767e916b2a523427f52bb3 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 9 Oct 2024 10:21:34 +0200 Subject: [PATCH] Add MariaDB community repository to cache mirrors Current MariaDB mirrors do not contain latest releases of MariaDB. The community mirror does have quite a different structure, so can't be set as drop-in replacement. This patch adds a community repository on top for migration purposes and not to break stable branches of projects, while allowing path forward with latest MariaDB LTS release (11.4). Change-Id: I36bf368ec6098b0e66c62eee61191e25dec38414 --- playbooks/roles/mirror/templates/mirror.vhost.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/roles/mirror/templates/mirror.vhost.j2 b/playbooks/roles/mirror/templates/mirror.vhost.j2 index b79f861163..04ed36e156 100644 --- a/playbooks/roles/mirror/templates/mirror.vhost.j2 +++ b/playbooks/roles/mirror/templates/mirror.vhost.j2 @@ -309,6 +309,11 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \ ProxyPass "/MariaDB/" "https://downloads.mariadb.com/MariaDB/" ttl=120 keepalive=On retry=0 ProxyPassReverse "/MariaDB/" "https://downloads.mariadb.com/MariaDB/" + # MariaDB community repo + CacheEnable disk "/mariadb_org" + ProxyPass "/mariadb_org/" "https://mirror.mariadb.org/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/mariadb_org/" "https://mirror.mariadb.org/" + # Docker CacheEnable disk "/docker" ProxyPass "/docker/" "https://download.docker.com/linux/" ttl=120 keepalive=On retry=0