blob: 1c781fed2910564c505ceef5cf152c7ce153a8bf [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
8multicloud_repos=("azure" "framework" "openstack" "openstack/vmware" "openstack/windriver")
9
10# clone_multicloud_repos() - Function that clones the Multi Cloud repositories
11function clone_multicloud_repos {
12 clone_repo multicloud $multicloud_src_folder
13
14 for dirc in ${multicloud_repos[@]}; do
15 clone_repo multicloud/$dirc $multicloud_src_folder/$dirc
16 done
17}
18
19# compile_multicloud_repos() -
20function compile_multicloud_repos {
21 compile_src multicloud $multicloud_src_folder
22
23 for dirc in ${multicloud_repos[@]}; do
24 compile_src $multicloud_src_folder/$dirc
25 done
26}
27
Victor Morales6a919972017-09-28 18:29:54 -070028# get_multicloud_images() -
29function get_multicloud_images {
30 echo "pass"
31}
32
Victor Morales000de532017-08-31 17:28:10 -050033# install_multicloud() -
34function install_multicloud {
35 echo "pass"
36}
37
38# init_multicloud() - Function that initialize Multi Cloud services
39function init_multicloud {
40 if [[ "$clone_repo" == "True" ]]; then
41 clone_multicloud_repos
42 if [[ "$compile_repo" == "True" ]]; then
43 compile_multicloud_repos
44 fi
45 fi
Victor Morales6a919972017-09-28 18:29:54 -070046 if [[ "$skip_get_images" == "False" ]]; then
47 get_multicloud_images
48 if [[ "$skip_install" == "False" ]]; then
49 install_multicloud
50 fi
51 fi
Victor Morales000de532017-08-31 17:28:10 -050052}