batcave: set up rhel10.0 sync
Signed-off-by: Carl George <carlwgeorge@gmail.com>
This commit is contained in:
parent
8dde62031e
commit
b565e59d32
3 changed files with 32 additions and 0 deletions
21
roles/batcave/files/rhel10-sync
Normal file
21
roles/batcave/files/rhel10-sync
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
RELEASEVERS=('10.0')
|
||||||
|
ARCHES=('aarch64' 'ppc64le' 's390x' 'x86_64')
|
||||||
|
REPOS=('baseos' 'appstream' 'crb')
|
||||||
|
|
||||||
|
for releasever in ${RELEASEVERS[@]}; do
|
||||||
|
for arch in ${ARCHES[@]}; do
|
||||||
|
for repo in ${REPOS[@]}; do
|
||||||
|
echo "syncing $releasever $arch $repo"
|
||||||
|
dnf \
|
||||||
|
--config /srv/web/repo/rhel/rhel10/dnf.conf \
|
||||||
|
--releasever $releasever \
|
||||||
|
--repo $repo \
|
||||||
|
reposync \
|
||||||
|
--download-metadata \
|
||||||
|
--downloadcomps \
|
||||||
|
--download-path /srv/web/repo/rhel/rhel10/$releasever/repos/$arch &> /dev/null
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
|
@ -1,2 +1,3 @@
|
||||||
30 3 * * * root /mnt/fedora/app/fi-repo/rhel/rhel8/rhel8-sync > /dev/null
|
30 3 * * * root /mnt/fedora/app/fi-repo/rhel/rhel8/rhel8-sync > /dev/null
|
||||||
30 5 * * * root /mnt/fedora/app/fi-repo/rhel/rhel9/rhel9-sync > /dev/null
|
30 5 * * * root /mnt/fedora/app/fi-repo/rhel/rhel9/rhel9-sync > /dev/null
|
||||||
|
30 7 * * * root /mnt/fedora/app/fi-repo/rhel/rhel10/rhel10-sync > /dev/null
|
||||||
|
|
|
@ -294,6 +294,16 @@
|
||||||
- config
|
- config
|
||||||
when: inventory_hostname.startswith('batcave01')
|
when: inventory_hostname.startswith('batcave01')
|
||||||
|
|
||||||
|
- name: Setup rhel10 sync copy script
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: rhel10-sync
|
||||||
|
dest: /mnt/fedora/app/fi-repo/rhel/rhel10/rhel10-sync
|
||||||
|
mode: '0775'
|
||||||
|
tags:
|
||||||
|
- batcave
|
||||||
|
- config
|
||||||
|
when: inventory_hostname.startswith('batcave01')
|
||||||
|
|
||||||
#
|
#
|
||||||
# sync-rhn cron job
|
# sync-rhn cron job
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue