Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 3 | source /var/onap/functions |
| 4 | |
| 5 | multicloud_src_folder=$git_src_folder/multicloud |
Shashank Kumar Shankar | f84c9a1 | 2017-10-23 11:08:31 -0700 | [diff] [blame] | 6 | multicloud_repos=("multicloud" "multicloud/framework" "multicloud/openstack" \ |
| 7 | "multicloud/openstack/vmware" "multicloud/openstack/windriver" \ |
| 8 | "multicloud/azure") |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 9 | |
| 10 | # clone_multicloud_repos() - Function that clones the Multi Cloud repositories |
| 11 | function clone_multicloud_repos { |
Shashank Kumar Shankar | f84c9a1 | 2017-10-23 11:08:31 -0700 | [diff] [blame] | 12 | for repo in ${multicloud_repos[@]}; do |
| 13 | clone_repo $repo $multicloud_src_folder${repo#*multicloud} |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 14 | done |
| 15 | } |
| 16 | |
| 17 | # compile_multicloud_repos() - |
| 18 | function compile_multicloud_repos { |
Shashank Kumar Shankar | f84c9a1 | 2017-10-23 11:08:31 -0700 | [diff] [blame] | 19 | for repo in ${multicloud_repos[@]}; do |
| 20 | compile_src $multicloud_src_folder${repo#*multicloud} |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 21 | done |
| 22 | } |
| 23 | |
Victor Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 24 | # get_multicloud_images() - |
| 25 | function get_multicloud_images { |
| 26 | echo "pass" |
| 27 | } |
| 28 | |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 29 | # install_multicloud() - |
| 30 | function install_multicloud { |
| 31 | echo "pass" |
| 32 | } |
| 33 | |
| 34 | # init_multicloud() - Function that initialize Multi Cloud services |
| 35 | function 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 Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 42 | if [[ "$skip_get_images" == "False" ]]; then |
| 43 | get_multicloud_images |
| 44 | if [[ "$skip_install" == "False" ]]; then |
| 45 | install_multicloud |
| 46 | fi |
| 47 | fi |
Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 48 | } |