blob: 445464ebb66eeb6898b02017ddeed091a5020854 [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)
8STACKLIGHTV2_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
13if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]]; then
14 "$CWD"/docker_swarm_install.sh
15fi
16if [[ "$K8S_BOOTSTRAP" == "true" ]]; then
17 "$CWD"/kubernetes_install.sh
18fi
Simon Pasquierd3a0b912017-05-02 15:32:20 +020019if [[ "$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
29fi
Simon Pasquier4a802be2017-06-29 12:54:50 +020030if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]]; then
31 "$CWD"/stacklightv2_infra_install.sh
32fi