summaryrefslogtreecommitdiffstats
path: root/setup.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-04-14 02:09:54 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-04-14 02:09:54 +0200
commit110ae6da8d80b63a068f4537383e775d958cf9a9 (patch)
tree1e3e84f1245d48518e0147400c6a3c624db10ee5 /setup.sh
parent5b9f90a1b410a0464eaad713c00b287174da80d2 (diff)
downloadands-110ae6da8d80b63a068f4537383e775d958cf9a9.tar.gz
ands-110ae6da8d80b63a068f4537383e775d958cf9a9.tar.bz2
ands-110ae6da8d80b63a068f4537383e775d958cf9a9.tar.xz
ands-110ae6da8d80b63a068f4537383e775d958cf9a9.zip
Provide support for global OpenShift resources (ClusterRoles, etc.)
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index add68a4..8d67d6d 100755
--- a/setup.sh
+++ b/setup.sh
@@ -73,7 +73,17 @@ case "$action" in
fi
apply playbooks/openshift-setup-apps.yml --extra-vars "$vars" "$@" || exit 1
;;
- templates|project_templates)
+ templates)
+ if [ -n "$1" ]; then
+ ./setup.sh -i $inventory project_templates "$@" || exit 1
+ else
+ ./setup.sh -i $inventory global_templates "$@" || exit 1
+ fi
+ ;;
+ global_templates)
+ apply playbooks/openshift-setup-resources.yml "$@" || exit 1
+ ;;
+ project_templates)
[ -n "$1" ] || { usage 'project name should be specified...' ; exit 1; }
vars="ands_configure_project=$1"