From 4f8850a57012c1c86c20091b9646dcddee853d12 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 28 Nov 2024 13:10:29 +0100 Subject: [PATCH] split upload of tarball and yum signatures to different hosts --- settings | 2 ++ sign_tarballs | 2 +- upload_yum_gpg | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/settings b/settings index 6d560604..f15d9d76 100644 --- a/settings +++ b/settings @@ -52,6 +52,8 @@ GNUPGHOME="$KEYDIR" TARDIR="$RELEASEDIR/tarballs" EXTRASDIR="$RELEASEDIR/extras" HOSTS="web01.osuosl.theforeman.org," +DOWNLOADS_HOSTS="${HOSTS}" +YUM_HOSTS="${HOSTS}" DOCROOT="/var/www/vhosts/downloads/htdocs" GOPASS_STORE="theforeman/releases" PASS_NAME_GPG="$GOPASS_STORE/foreman/$FOREMAN_VERSION-gpg" diff --git a/sign_tarballs b/sign_tarballs index d1449a41..9b32fab8 100755 --- a/sign_tarballs +++ b/sign_tarballs @@ -21,7 +21,7 @@ upload() { files+="'docroot': '${DOCROOT}'" files+="}" - ansible_playbook --inventory=$HOSTS --extra-vars="$files" upload_tarball_signatures.yaml + ansible_playbook --inventory=$DOWNLOADS_HOSTS --extra-vars="$files" upload_tarball_signatures.yaml } if [[ ! -d "$TARDIR" ]] ; then diff --git a/upload_yum_gpg b/upload_yum_gpg index 0a7aac38..de4b07de 100755 --- a/upload_yum_gpg +++ b/upload_yum_gpg @@ -18,7 +18,7 @@ upload() { trap "rm -f $gpg_key" EXIT gpg2 --homedir "$KEYDIR" --armor --export "$FULLGPGKEY" > "$gpg_key" - ansible_playbook --inventory=$HOSTS --extra-vars="release=${VERSION} gpg_key=${gpg_key} project=${PROJECT}" upload_yum_gpg_public_key.yaml + ansible_playbook --inventory=$YUM_HOSTS --extra-vars="release=${VERSION} gpg_key=${gpg_key} project=${PROJECT}" upload_yum_gpg_public_key.yaml } upload