Jeepyb User | dd14e0b | 2017-02-28 15:19:32 +0000 | [diff] [blame] | 1 | #!/bin/bash -x |
| 2 | |
| 3 | CWD="$(dirname "$(readlink -f "$0")")" |
| 4 | |
Simon Pasquier | d3a0b91 | 2017-05-02 15:32:20 +0200 | [diff] [blame] | 5 | K8S_BOOTSTRAP=$(salt -C 'I@kubernetes:master' test.ping 1>/dev/null 2>&1 && echo true) |
Swann Croiset | c7788dd | 2017-05-16 09:56:32 +0200 | [diff] [blame] | 6 | OPENSTACK_BOOTSTRAP=$(salt -C 'I@nova:controller' test.ping 1>/dev/null 2>&1 && echo true) |
Simon Pasquier | d3a0b91 | 2017-05-02 15:32:20 +0200 | [diff] [blame] | 7 | OPENCONTRAIL_BOOTSTRAP=$(salt -C 'I@opencontrail:control' test.ping 1>/dev/null 2>&1 && echo true) |
Mikhail Ivanov | 614feb5 | 2017-11-09 16:10:46 +0400 | [diff] [blame^] | 8 | OSS_BOOTSTRAP=$(salt -C 'I@devops_portal:config' test.ping 1>/dev/null 2>&1 && echo true) |
Simon Pasquier | d3a0b91 | 2017-05-02 15:32:20 +0200 | [diff] [blame] | 9 | STACKLIGHTV2_BOOTSTRAP=$(salt -C 'I@prometheus:server' test.ping 1>/dev/null 2>&1 && echo true) |
| 10 | |
| 11 | "$CWD"/config_verify.sh |
| 12 | "$CWD"/infra_install.sh |
| 13 | "$CWD"/core_services_install.sh |
Mikhail Ivanov | 614feb5 | 2017-11-09 16:10:46 +0400 | [diff] [blame^] | 14 | if [[ "$OSS_BOOTSTRAP" == "true" ]]; then |
| 15 | "$CWD"/oss_install.sh infra |
| 16 | fi |
| 17 | if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]] || [[ "$OSS_BOOTSTRAP" == "true" ]]; then |
Simon Pasquier | d3a0b91 | 2017-05-02 15:32:20 +0200 | [diff] [blame] | 18 | "$CWD"/docker_swarm_install.sh |
| 19 | fi |
| 20 | if [[ "$K8S_BOOTSTRAP" == "true" ]]; then |
| 21 | "$CWD"/kubernetes_install.sh |
| 22 | fi |
Simon Pasquier | d3a0b91 | 2017-05-02 15:32:20 +0200 | [diff] [blame] | 23 | if [[ "$OPENSTACK_BOOTSTRAP" == "true" ]]; then |
| 24 | "$CWD"/openstack_control_install.sh |
| 25 | "$CWD"/stacklight_infra_install.sh |
| 26 | if [[ "$OPENCONTRAIL_BOOTSTRAP" == "true" ]]; then |
| 27 | "$CWD"/opencontrail_control_install.sh |
| 28 | "$CWD"/opencontrail_compute_install.sh |
| 29 | else |
| 30 | "$CWD"/ovs_compute_install.sh |
| 31 | fi |
| 32 | "$CWD"/stacklight_monitor_install.sh |
| 33 | fi |
Simon Pasquier | 4a802be | 2017-06-29 12:54:50 +0200 | [diff] [blame] | 34 | if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]]; then |
| 35 | "$CWD"/stacklightv2_infra_install.sh |
| 36 | fi |
Mikhail Ivanov | 614feb5 | 2017-11-09 16:10:46 +0400 | [diff] [blame^] | 37 | if [[ "$OSS_BOOTSTRAP" == "true" ]]; then |
| 38 | "$CWD"/oss_install.sh services |
| 39 | fi |