From da2e98ed4d54d9c459ccea99b225e4a7ef6d0a5e Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 19 May 2024 18:53:48 +1000 Subject: [PATCH] feat: add centos mirror to edgecache - add centos repo to edgecache --- hieradata/roles/infra/storage/edgecache.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hieradata/roles/infra/storage/edgecache.yaml b/hieradata/roles/infra/storage/edgecache.yaml index 67e6b28..5af178a 100644 --- a/hieradata/roles/infra/storage/edgecache.yaml +++ b/hieradata/roles/infra/storage/edgecache.yaml @@ -33,6 +33,7 @@ profiles::edgecache::params::nginx_aliases: profiles::edgecache::params::directories: /data/edgecache: { owner: root, group: root } /data/edgecache/pub: { owner: nginx, group: nginx } + /data/edgecache/pub/centos: { owner: nginx, group: nginx } /data/edgecache/pub/almalinux: { owner: nginx, group: nginx } /data/edgecache/pub/debian: { owner: nginx, group: nginx } /data/edgecache/pub/epel: { owner: nginx, group: nginx } @@ -50,6 +51,18 @@ profiles::edgecache::params::mirrors: proxy_cache_valid: - '200 302 1440h' - '404 1m' + centos_repodata: + ensure: present + location: '~* ^/centos/.*/repodata/' + proxy: http://gsl-syd.mm.fcix.net + centos_data: + ensure: present + location: /centos + proxy: http://gsl-syd.mm.fcix.net + proxy_cache: cache + proxy_cache_valid: + - '200 302 1440h' + - '404 1m' almalinux_repodata: ensure: present location: '~* ^/almalinux/.*/repodata/'