blob: 2219d009b2ec3684b69c8701db31d7285ed94584 [file] [log] [blame]
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00001#!/bin/bash -x
2
3CWD="$(dirname "$(readlink -f "$0")")"
4
Simon Pasquierd3a0b912017-05-02 15:32:20 +02005K8S_BOOTSTRAP=$(salt -C 'I@kubernetes:master' test.ping 1>/dev/null 2>&1 && echo true)
Swann Croisetc7788dd2017-05-16 09:56:32 +02006OPENSTACK_BOOTSTRAP=$(salt -C 'I@nova:controller' test.ping 1>/dev/null 2>&1 && echo true)
Simon Pasquierd3a0b912017-05-02 15:32:20 +02007OPENCONTRAIL_BOOTSTRAP=$(salt -C 'I@opencontrail:control' test.ping 1>/dev/null 2>&1 && echo true)
Mikhail Ivanov614feb52017-11-09 16:10:46 +04008OSS_BOOTSTRAP=$(salt -C 'I@devops_portal:config' test.ping 1>/dev/null 2>&1 && echo true)
Simon Pasquierd3a0b912017-05-02 15:32:20 +02009STACKLIGHTV2_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 Ivanov614feb52017-11-09 16:10:46 +040014if [[ "$OSS_BOOTSTRAP" == "true" ]]; then
15 "$CWD"/oss_install.sh infra
16fi
17if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]] || [[ "$OSS_BOOTSTRAP" == "true" ]]; then
Simon Pasquierd3a0b912017-05-02 15:32:20 +020018 "$CWD"/docker_swarm_install.sh
19fi
20if [[ "$K8S_BOOTSTRAP" == "true" ]]; then
21 "$CWD"/kubernetes_install.sh
22fi
Simon Pasquierd3a0b912017-05-02 15:32:20 +020023if [[ "$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
33fi
Simon Pasquier4a802be2017-06-29 12:54:50 +020034if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]]; then
35 "$CWD"/stacklightv2_infra_install.sh
36fi
Mikhail Ivanov614feb52017-11-09 16:10:46 +040037if [[ "$OSS_BOOTSTRAP" == "true" ]]; then
38 "$CWD"/oss_install.sh services
39fi