From 110ae6da8d80b63a068f4537383e775d958cf9a9 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 14 Apr 2018 02:09:54 +0200 Subject: Provide support for global OpenShift resources (ClusterRoles, etc.) --- setup.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'setup.sh') 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" -- cgit v1.2.3