From f63f1f3082ab38e88e4c933409f8c83c3da01999 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Fri, 26 Nov 2021 11:21:51 +0000 Subject: 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 --- tools/kolla-ansible | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tools') 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 <