Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split upload of tarball and yum signatures to different hosts #455

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions settings
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
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