feat: add ceph mirror to edgecache

- add ceph reef apt and rpm repository to edgecache
- add the centos storage sig gpg
This commit is contained in:
2024-06-19 23:15:51 +10:00
parent feddc4a3fb
commit 36ad19ffed
4 changed files with 61 additions and 0 deletions
@@ -42,6 +42,9 @@ profiles::edgecache::params::directories:
/data/edgecache/pub/postgres: { owner: nginx, group: nginx }
/data/edgecache/pub/postgres/apt: { owner: nginx, group: nginx }
/data/edgecache/pub/postgres/yum: { owner: nginx, group: nginx }
/data/edgecache/pub/ceph: { owner: nginx, group: nginx }
/data/edgecache/pub/ceph/apt: { owner: nginx, group: nginx }
/data/edgecache/pub/ceph/yum: { owner: nginx, group: nginx }
profiles::edgecache::params::mirrors:
debian:
@@ -118,3 +121,29 @@ profiles::edgecache::params::mirrors:
proxy_cache_valid:
- '200 302 1440h'
- '404 1m'
ceph_yum_repodata:
ensure: present
location: '~* ^/ceph/yum/.*/repodata/'
rewrite_rules:
- '^/ceph/yum/(.*)$ /rpm-reef/$1 break'
proxy: http://158.69.68.124
ceph_yum_data:
ensure: present
location: /ceph/yum
proxy: http://158.69.68.124/rpm-reef
proxy_cache: cache
proxy_cache_valid:
- '200 302 1440h'
- '404 1m'
ceph_apt:
ensure: present
location: /ceph/apt
proxy: http://158.69.68.124/debian-reef
ceph_apt_pool:
ensure: present
location: /ceph/apt/pool
proxy: http://158.69.68.124/debian-reef/pool
proxy_cache: cache
proxy_cache_valid:
- '200 302 1440h'
- '404 1m'