summaryrefslogtreecommitdiffstats
path: root/setup.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-18 22:59:31 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-18 22:59:31 +0100
commit47f350bc3aa85a8bd406d95faf084df2abf74ae9 (patch)
tree72ad1e91bac46d3457f89781dc90f0d6c1c074d5 /setup.sh
parent006f333828db373435daa15483d2ab753048f62a (diff)
downloadands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.tar.gz
ands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.tar.bz2
ands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.tar.xz
ands-47f350bc3aa85a8bd406d95faf084df2abf74ae9.zip
Second revision: includes hostpath mounts, gluster block storage, kaas apps, etc.
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
index 69293aa..a5f49b9 100755
--- a/setup.sh
+++ b/setup.sh
@@ -55,6 +55,18 @@ case "$action" in
[ -n "$project" ] || { usage 'project name should be specified...' ; exit 1; }
apply playbooks/openshift-setup-project.yml --extra-vars "ands_configure_project=$project" "$@" || exit 1
;;
+ apps)
+ [ -n "$1" ] || { usage 'project name should be specified...' ; exit 1; }
+
+ vars="ands_configure_project=$1"
+ shift
+
+ if [[ -n "$1" && ${1:0:1} != "-" ]]; then
+ vars="$vars,ands_configure_app=$1"
+ shift
+ fi
+ apply playbooks/openshift-setup-apps.yml --extra-vars "$vars" "$@" || exit 1
+ ;;
openshift-masters)
apply playbooks/openshift-add-masters.yml "$@" || exit 1
;;
@@ -99,6 +111,9 @@ case "$action" in
upgrade)
apply playbooks/openshift-upgrade.yml "$@" || exit 1
;;
+ health)
+ apply playbooks/openshift-health.yml "$@" || exit
+ ;;
maintain)
apply playbooks/maintain.yml "$@" || exit
;;