blob: 05195877b2c314a47c49a48a392fe55da2fb12de [file] [log] [blame]
Victor Morales000de532017-08-31 17:28:10 -05001#!/bin/bash
2
Victor Morales000de532017-08-31 17:28:10 -05003source /var/onap/functions
4
5multicloud_src_folder=$git_src_folder/multicloud
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -07006multicloud_repos=("multicloud" "multicloud/framework" "multicloud/openstack" \
7"multicloud/openstack/vmware" "multicloud/openstack/windriver" \
8"multicloud/azure")
Victor Morales000de532017-08-31 17:28:10 -05009
10# clone_multicloud_repos() - Function that clones the Multi Cloud repositories
11function clone_multicloud_repos {
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -070012 for repo in ${multicloud_repos[@]}; do
13 clone_repo $repo $multicloud_src_folder${repo#*multicloud}
Victor Morales000de532017-08-31 17:28:10 -050014 done
15}
16
17# compile_multicloud_repos() -
18function compile_multicloud_repos {
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -070019 for repo in ${multicloud_repos[@]}; do
20 compile_src $multicloud_src_folder${repo#*multicloud}
Victor Morales000de532017-08-31 17:28:10 -050021 done
22}
23
Victor Morales6a919972017-09-28 18:29:54 -070024# get_multicloud_images() -
25function get_multicloud_images {
26 echo "pass"
27}
28
Victor Morales000de532017-08-31 17:28:10 -050029# install_multicloud() -
30function install_multicloud {
31 echo "pass"
32}
33
34# init_multicloud() - Function that initialize Multi Cloud services
35function init_multicloud {
36 if [[ "$clone_repo" == "True" ]]; then
37 clone_multicloud_repos
38 if [[ "$compile_repo" == "True" ]]; then
39 compile_multicloud_repos
40 fi
41 fi
Victor Morales6a919972017-09-28 18:29:54 -070042 if [[ "$skip_get_images" == "False" ]]; then
43 get_multicloud_images
44 if [[ "$skip_install" == "False" ]]; then
45 install_multicloud
46 fi
47 fi
Victor Morales000de532017-08-31 17:28:10 -050048}