diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-04-14 02:09:54 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-04-14 02:09:54 +0200 |
commit | 110ae6da8d80b63a068f4537383e775d958cf9a9 (patch) | |
tree | 1e3e84f1245d48518e0147400c6a3c624db10ee5 /setup.sh | |
parent | 5b9f90a1b410a0464eaad713c00b287174da80d2 (diff) | |
download | ands-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-x | setup.sh | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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" |