diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-09-29 03:37:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-29 03:37:47 +0000 |
commit | 53ef8bc5b456d4f9b157f84252202757771e5d2d (patch) | |
tree | 574f3ea939db3f00cbb8931d7c383f7b4a30da30 /bootstrap/vagrant-onap/lib/mso | |
parent | 8534458b0fe4e9e87dad0e2c92ac17d989054403 (diff) | |
parent | 6a919971cef56b9102dc358014006985d7eaba5b (diff) |
Merge "Add support to configuration values"
Diffstat (limited to 'bootstrap/vagrant-onap/lib/mso')
-rwxr-xr-x | bootstrap/vagrant-onap/lib/mso | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/bootstrap/vagrant-onap/lib/mso b/bootstrap/vagrant-onap/lib/mso index 4b209062d..6ff4bbe3e 100755 --- a/bootstrap/vagrant-onap/lib/mso +++ b/bootstrap/vagrant-onap/lib/mso @@ -25,8 +25,8 @@ function compile_all_mso_repos { done } -# install_mso() - Installation of mso images -function install_mso { +# get_mso_images() - Function that retrieves or create MSO Docker images +function get_mso_images { if [[ "$build_image" == "True" ]]; then export GIT_NO_PROJECT=/opt/ compile_src $src_folder @@ -34,8 +34,8 @@ function install_mso { fi } -# install_mso_docker_config() - Download and install MSO Docker configuration project -function install_mso_docker_config { +# install_mso() - Install MSO Docker configuration project +function install_mso { MSO_ENCRYPTION_KEY=$(cat /opt/mso/docker-config/encryption.key) echo -n "$openstack_api_key" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p > /opt/config/api_key.txt @@ -108,6 +108,10 @@ function init_mso { fi fi - install_mso - install_mso_docker_config + if [[ "$skip_get_images" == "False" ]]; then + get_mso_images + if [[ "$skip_install" == "False" ]]; then + install_mso + fi + fi } |