blob: b4a185aafb4e25b967de25cb153d9a9dba4cf9c3 [file] [log] [blame]
Victor Morales000de532017-08-31 17:28:10 -05001#!/bin/bash
2
3set -o xtrace
4
5source /var/onap/functions
6
7multicloud_src_folder=$git_src_folder/multicloud
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -07008multicloud_repos=("multicloud" "multicloud/framework" "multicloud/openstack" \
9"multicloud/openstack/vmware" "multicloud/openstack/windriver" \
10"multicloud/azure")
Victor Morales000de532017-08-31 17:28:10 -050011
12# clone_multicloud_repos() - Function that clones the Multi Cloud repositories
13function clone_multicloud_repos {
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -070014 for repo in ${multicloud_repos[@]}; do
15 clone_repo $repo $multicloud_src_folder${repo#*multicloud}
Victor Morales000de532017-08-31 17:28:10 -050016 done
17}
18
19# compile_multicloud_repos() -
20function compile_multicloud_repos {
Shashank Kumar Shankarf84c9a12017-10-23 11:08:31 -070021 for repo in ${multicloud_repos[@]}; do
22 compile_src $multicloud_src_folder${repo#*multicloud}
Victor Morales000de532017-08-31 17:28:10 -050023 done
24}
25
Victor Morales6a919972017-09-28 18:29:54 -070026# get_multicloud_images() -
27function get_multicloud_images {
28 echo "pass"
29}
30
Victor Morales000de532017-08-31 17:28:10 -050031# install_multicloud() -
32function install_multicloud {
33 echo "pass"
34}
35
36# init_multicloud() - Function that initialize Multi Cloud services
37function init_multicloud {
38 if [[ "$clone_repo" == "True" ]]; then
39 clone_multicloud_repos
40 if [[ "$compile_repo" == "True" ]]; then
41 compile_multicloud_repos
42 fi
43 fi
Victor Morales6a919972017-09-28 18:29:54 -070044 if [[ "$skip_get_images" == "False" ]]; then
45 get_multicloud_images
46 if [[ "$skip_install" == "False" ]]; then
47 install_multicloud
48 fi
49 fi
Victor Morales000de532017-08-31 17:28:10 -050050}