Skip to content

Commit

Permalink
split upload of tarball and yum signatures to different hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 28, 2024
1 parent 99338a4 commit 4f8850a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions settings
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ GNUPGHOME="$KEYDIR"
TARDIR="$RELEASEDIR/tarballs"
EXTRASDIR="$RELEASEDIR/extras"
HOSTS="web01.osuosl.theforeman.org,"
DOWNLOADS_HOSTS="${HOSTS}"
YUM_HOSTS="${HOSTS}"

Check warning

Code scanning / shellcheck

YUM_HOSTS appears unused. Verify use (or export if used externally). Warning

YUM_HOSTS appears unused. Verify use (or export if used externally).
DOCROOT="/var/www/vhosts/downloads/htdocs"
GOPASS_STORE="theforeman/releases"
PASS_NAME_GPG="$GOPASS_STORE/foreman/$FOREMAN_VERSION-gpg"
Expand Down
2 changes: 1 addition & 1 deletion sign_tarballs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion upload_yum_gpg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f8850a

Please sign in to comment.