batcave: add sync for centos-9-stream ( releng 10235 )
Sync down once a day the centos 9 stream buildroot. This will be used as a base for epel9-next bringup. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
f8b2b6ee92
commit
774645fb06
3 changed files with 31 additions and 0 deletions
19
roles/batcave/files/centos-9s-sync
Normal file
19
roles/batcave/files/centos-9s-sync
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SERVER=kojihub.stream.centos.org
|
||||||
|
STREAM_TOPDIR=kojifiles/repos/c9s-build/latest/
|
||||||
|
|
||||||
|
https://kojihub.stream.centos.org/kojifiles/repos/c9s-build/latest/
|
||||||
|
|
||||||
|
## mirror CentOS-9 Stream
|
||||||
|
|
||||||
|
DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-9-stream
|
||||||
|
|
||||||
|
mkdir -p ${DESTDIR}
|
||||||
|
|
||||||
|
for i in `echo aarch64 i386 ppc64le s390x x86_64`
|
||||||
|
do
|
||||||
|
mkdir -p ${DESTDIR}/${i}
|
||||||
|
cd ${DESTDIR}
|
||||||
|
reposync --download-metadata --repofrompath=$i,https://kojihub.stream.centos.org/kojifiles/repos/c9s-build/latest/$i --disablerepo=\* --enablerepo=$i
|
||||||
|
done
|
|
@ -1 +1,2 @@
|
||||||
30 4 * * * root /mnt/fedora/app/fi-repo/centos/centos-8-sync > /dev/null
|
30 4 * * * root /mnt/fedora/app/fi-repo/centos/centos-8-sync > /dev/null
|
||||||
|
50 4 * * * root /mnt/fedora/app/fi-repo/centos/centos-9s-sync > /dev/null
|
||||||
|
|
|
@ -316,6 +316,17 @@
|
||||||
- config
|
- config
|
||||||
when: inventory_hostname.startswith('batcave01')
|
when: inventory_hostname.startswith('batcave01')
|
||||||
|
|
||||||
|
#
|
||||||
|
# Setup centos 9s sync script.
|
||||||
|
#
|
||||||
|
|
||||||
|
- name: setup centos 9s sync script
|
||||||
|
copy: src=centos-9s-sync dest=/mnt/fedora/app/fi-repo/centos/centos-9s-sync mode=0775
|
||||||
|
tags:
|
||||||
|
- batcave
|
||||||
|
- config
|
||||||
|
when: inventory_hostname.startswith('batcave01')
|
||||||
|
|
||||||
#
|
#
|
||||||
# Setup rhel8-split script.
|
# Setup rhel8-split script.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue