blob: 4e4d2487ab5d958c2a5481e5480759f1f73b2c27 [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
19if [[ "$STACKLIGHTV2_BOOTSTRAP" == "true" ]]; then
20 "$CWD"/stacklightv2_infra_install.sh
21fi
22if [[ "$OPENSTACK_BOOTSTRAP" == "true" ]]; then
23 "$CWD"/openstack_control_install.sh
24 "$CWD"/stacklight_infra_install.sh
25 if [[ "$OPENCONTRAIL_BOOTSTRAP" == "true" ]]; then
26 "$CWD"/opencontrail_control_install.sh
27 "$CWD"/opencontrail_compute_install.sh
28 else
29 "$CWD"/ovs_compute_install.sh
30 fi
31 "$CWD"/stacklight_monitor_install.sh
32fi