aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-05-14 09:23:31 -0700
committerVictor Morales <victor.morales@intel.com>2018-05-14 09:23:31 -0700
commitfc1df1ef91335428d53b4133111bab52d281ce2b (patch)
tree1f7c5d92a2d16e584107d053493511fc41a15ae2 /lib
parentc993457d9b2a580db9dde2d112ab754a8aaa6c7f (diff)
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 <victor.morales@intel.com> Issue-ID: INT-329
Diffstat (limited to 'lib')
-rwxr-xr-xlib/openstack12
1 files 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