From fc1df1ef91335428d53b4133111bab52d281ce2b Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Mon, 14 May 2018 09:23:31 -0700 Subject: Add skip_get_images and skip_install to OS The skip_get_images and skip_install variables controls the workflow for every script. These conditionals weren't present for openstack script. Change-Id: Ie640bad0b8cab2a3bc620d382550ce79aad36080 Signed-off-by: Victor Morales Issue-ID: INT-329 --- lib/openstack | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/openstack b/lib/openstack index 38a38a6..53e474d 100755 --- a/lib/openstack +++ b/lib/openstack @@ -73,10 +73,14 @@ function install_openstack { function _install_kolla_ansible { install_dependencies configure_deploy ${1:-"192.168.53.0"} "True" - get_openstack_images - kolla-ansible deploy -i $kolla_inventory - kolla-ansible post-deploy - echo "source /etc/kolla/admin-openrc.sh" >> ${HOME}/.bashrc + if [[ "$skip_get_images" == "False" ]]; then + get_openstack_images + fi + if [[ "$skip_install" == "False" ]]; then + kolla-ansible deploy -i $kolla_inventory + kolla-ansible post-deploy + echo "source /etc/kolla/admin-openrc.sh" >> ${HOME}/.bashrc + fi } # _install_openstack_helm() - Function that installs OpenStack services thru OpenStack-Helm project -- cgit 1.2.3-korg