feat: split reposync into two roles

- reposync and packagerepo web service
- change backing datastore to be cephfs /shared/app/packagerepo
This commit is contained in:
2025-05-31 23:01:39 +10:00
parent 1df11b8977
commit af83dd9d4f
9 changed files with 62 additions and 48 deletions
@@ -29,6 +29,9 @@ download_gpg_key() {
curl -s --create-dirs -o "${basepath}/live/${reponame}/${filename}" "$gpgkeyurl" || {
echo "Failed to download GPG key from $gpgkeyurl"
}
# import the gpg key
rpm --import "${basepath}/live/${reponame}/${filename}" || echo "Failed to import gpg key ${basepath}/live/${reponame}/${filename}"
}
# Function to perform rsync with hard links