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) |
| 8 | STACKLIGHTV2_BOOTSTRAP=$(salt -C 'I@prometheus:server' test.ping 1>/dev/null 2>&1 && echo true) |
| 9 | |
| 10 | "$CWD"/config_verify.sh |
| 11 | "$CWD"/infra_install.sh |
| 12 | "$CWD"/core_services_install.sh |
| 13 | if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]]; then |
| 14 | "$CWD"/docker_swarm_install.sh |
| 15 | fi |
| 16 | if [[ "$K8S_BOOTSTRAP" == "true" ]]; then |
| 17 | "$CWD"/kubernetes_install.sh |
| 18 | fi |
Simon Pasquier | d3a0b91 | 2017-05-02 15:32:20 +0200 | [diff] [blame] | 19 | if [[ "$OPENSTACK_BOOTSTRAP" == "true" ]]; then |
| 20 | "$CWD"/openstack_control_install.sh |
| 21 | "$CWD"/stacklight_infra_install.sh |
| 22 | if [[ "$OPENCONTRAIL_BOOTSTRAP" == "true" ]]; then |
| 23 | "$CWD"/opencontrail_control_install.sh |
| 24 | "$CWD"/opencontrail_compute_install.sh |
| 25 | else |
| 26 | "$CWD"/ovs_compute_install.sh |
| 27 | fi |
| 28 | "$CWD"/stacklight_monitor_install.sh |
| 29 | fi |
Simon Pasquier | 4a802be | 2017-06-29 12:54:50 +0200 | [diff] [blame] | 30 | if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]]; then |
| 31 | "$CWD"/stacklightv2_infra_install.sh |
| 32 | fi |