summaryrefslogtreecommitdiffstats
path: root/setup.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-27 17:55:55 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-27 17:55:55 +0100
commitfe4622305efa55e6bec8221efe8fc4bdd5462136 (patch)
tree9ffe3622bc8fff9225951d74579d7a617fdcfc7c /setup.sh
parent8ca99ecc72bb60c128e846dbe33e38b3c2369e3c (diff)
downloadands-fe4622305efa55e6bec8221efe8fc4bdd5462136.tar.gz
ands-fe4622305efa55e6bec8221efe8fc4bdd5462136.tar.bz2
ands-fe4622305efa55e6bec8221efe8fc4bdd5462136.tar.xz
ands-fe4622305efa55e6bec8221efe8fc4bdd5462136.zip
Scaling and upgrade playbooks (not properly tested yet)
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh20
1 files changed, 16 insertions, 4 deletions
diff --git a/setup.sh b/setup.sh
index 20174f1..b7d12b3 100755
--- a/setup.sh
+++ b/setup.sh
@@ -39,10 +39,19 @@ case "${1}" in
apply playbooks/openshift-add-nodes.yml || exit 1
;;
nodes)
- ./setup.sh prepare || exit 1
- ./setup.sh openshift-nodes || exit 1
- ./setup.sh gluster || exit 1
- ./setup.sh configure || exit 1
+ ./setup.sh -i $inventory prepare || exit 1
+ ./setup.sh -i $inventory openshift-nodes || exit 1
+ ./setup.sh -i $inventory gluster || exit 1
+ ./setup.sh -i $inventory configure || exit 1
+ ;;
+ openshift-masters)
+ apply playbooks/openshift-add-masters.yml || exit 1
+ ;;
+ masters)
+ ./setup.sh -i $inventory prepare || exit 1
+ ./setup.sh -i $inventory openshift-masters || exit 1
+ ./setup.sh -i $inventory gluster || exit 1
+ ./setup.sh -i $inventory configure || exit 1
;;
users)
apply playbooks/openshift-setup-users.yml || exit 1
@@ -59,6 +68,9 @@ case "${1}" in
certs)
apply playbooks/openshift-redeploy-certificates.yml --extra-vars "openshift_certificates_redeploy_ca=true" || exit 1
;;
+ upgrade)
+ apply playbooks/openshift-upgrade.yml || exit 1
+ ;;
check)
apply playbooks/maintain.yml || exit
;;