feat: automate CentOS Stream 10 repository mirroring setup

Add configurations to playbooks and templates for local repository mirroring.
This exports and mounts the CentOS Stream 10 local mirror directory (/srv/nfs/cs10),
deploys the Apache configuration serving it from the Hub, and parameters the Koji
external repository bootstrap tasks to synchronize target URLs with local mirrors.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
This commit is contained in:
Rénich Bon Ćirić 2026-06-16 13:48:55 -06:00
commit be9438afdf
Signed by: renich
GPG key ID: AB2A9F49384FE324
7 changed files with 72 additions and 2 deletions

View file

@ -30,6 +30,24 @@
opts: "rw,sync"
state: mounted
- name: Create mirror mount point directory
ansible.builtin.file:
path: "{{ koji_mirror_dir }}"
state: directory
owner: "{{ koji_admin_user }}"
group: "{{ koji_admin_user }}"
mode: "0755"
when: inventory_hostname in groups['kojihub']
- name: Mount the Koji Mirror NFS share
ansible.posix.mount:
path: "{{ koji_mirror_dir }}"
src: "{{ koji_nfs_host }}:{{ koji_mirror_dir }}"
fstype: nfs
opts: "rw,sync"
state: mounted
when: inventory_hostname in groups['kojihub']
- name: Set SELinux context for Koji NFS mount
ansible.builtin.command: semanage fcontext -a -t nfs_t "{{ koji_top_dir }}(/.*)?"
changed_when: false