Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -o xtrace |
| 4 | |
| 5 | source /var/onap/functions |
| 6 | |
| 7 | multicloud_src_folder=$git_src_folder/multicloud |
| 8 | multicloud_repos=("azure" "framework" "openstack" "openstack/vmware" "openstack/windriver") |
| 9 | |
| 10 | # clone_multicloud_repos() - Function that clones the Multi Cloud repositories |
| 11 | function 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() - |
| 20 | function 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 Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 28 | # get_multicloud_images() - |
| 29 | function get_multicloud_images { |
| 30 | echo "pass" |
| 31 | } |
| 32 | |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 33 | # install_multicloud() - |
| 34 | function install_multicloud { |
| 35 | echo "pass" |
| 36 | } |
| 37 | |
| 38 | # init_multicloud() - Function that initialize Multi Cloud services |
| 39 | function 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 Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 46 | if [[ "$skip_get_images" == "False" ]]; then |
| 47 | get_multicloud_images |
| 48 | if [[ "$skip_install" == "False" ]]; then |
| 49 | install_multicloud |
| 50 | fi |
| 51 | fi |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 52 | } |