diff options
| author | Mark Goddard <mark@stackhpc.com> | 2021-11-26 11:21:51 +0000 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2022-02-21 14:26:48 +0000 |
| commit | f63f1f3082ab38e88e4c933409f8c83c3da01999 (patch) | |
| tree | 4328ebf7163e91c3ae957eb3b26ae9387e01dabd /tools | |
| parent | fcdba9e850b94186f496a311ccb151b89813710b (diff) | |
| download | kolla-ansible-f63f1f3082ab38e88e4c933409f8c83c3da01999.tar.gz kolla-ansible-f63f1f3082ab38e88e4c933409f8c83c3da01999.zip | |
Install openstack.kolla collection
This change adds an Ansible Galaxy requirements file including the
openstack.kolla collection. A new 'kolla-ansible install-deps' command
is provided to install the requirements.
With the new collection in place, this change also switches to using the
baremetal role from the openstack.kolla collection, and removes the
baremetal role from this repository.
Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/820168
Change-Id: I9708f57b4bb9d64eb4903c253684fe0d9147bd4a
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/kolla-ansible | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible index 96c64e728..23c08f23b 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -124,6 +124,15 @@ function find_base_dir { fi } +function install_deps { + echo "Installing Ansible Galaxy dependencies" + ansible-galaxy collection install -r ${BASEDIR}/requirements.yml --force + if [[ $? -ne 0 ]]; then + echo "ERROR: Failed to install Ansible Galaxy dependencies" >&2 + exit 1 + fi +} + function process_cmd { echo "$ACTION : $CMD" $CMD @@ -162,6 +171,7 @@ Environment variables: EXTRA_OPTS Additional arguments to pass to ansible-playbook Commands: + install-deps Install Ansible Galaxy dependencies prechecks Do pre-deployment checks for hosts check Do post-deployment smoke tests mariadb_recovery Recover a completely stopped mariadb cluster @@ -211,6 +221,7 @@ cat <<EOF --diff -D --verbose -v --version +install-deps prechecks check mariadb_recovery @@ -405,6 +416,10 @@ done case "$1" in +(install-deps) + install_deps + exit 0 + ;; (prechecks) ACTION="Pre-deployment checking" EXTRA_OPTS="$EXTRA_OPTS -e kolla_action=precheck" |
