
This normalizes the formatting of files from ci-scripts and config folders in order to allow further hardening of linting. Fixing linting was too big to be made in a single commit as it would involve too many files to review and could merge conflicts with existing changes. Thus doing it in few chunks would makes it possible. Original full change is at https://review.openstack.org/#/c/627545/ and will be the one merging the last. Change-Id: Ifb215c0e2ea0ef7115897721f75ba8489bd59b97
31 lines
654 B
Bash
Executable File
31 lines
654 B
Bash
Executable File
#!/bin/bash
|
|
# CI script to upload an undercloud image to Openstack Virtual Baremetal.
|
|
# $HW_ENV_DIR is the directory where environment-specific files are kept.
|
|
# Usage: ovb-image-upload.sh \
|
|
# <release> \
|
|
# <hw-env-dir> \
|
|
# <network-isolation> \
|
|
# <ovb-creds-file> \
|
|
# <playbook>
|
|
|
|
set -eux
|
|
|
|
RELEASE=$1
|
|
HW_ENV_DIR=$2
|
|
NETWORK_ISOLATION=$3
|
|
OVB_CREDS_FILE=$4
|
|
PLAYBOOK=$5
|
|
|
|
pushd $WORKSPACE/tripleo-quickstart
|
|
|
|
bash quickstart.sh \
|
|
--ansible-debug \
|
|
--bootstrap \
|
|
--working-dir $WORKSPACE/ \
|
|
--release $RELEASE \
|
|
--extra-vars @$OVB_CREDS_FILE \
|
|
--extra-vars get_latest_image='upload' \
|
|
--playbook $PLAYBOOK \
|
|
localhost
|
|
popd
|