From bc6b5cb5ad7dec5158e0005433b02a951daf9191 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 11 Apr 2018 00:30:58 +0200 Subject: Support executing custom scripts and provide mode to update just ADEI template --- setup.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'setup.sh') diff --git a/setup.sh b/setup.sh index 991b89e..add68a4 100755 --- a/setup.sh +++ b/setup.sh @@ -73,6 +73,22 @@ case "$action" in fi apply playbooks/openshift-setup-apps.yml --extra-vars "$vars" "$@" || exit 1 ;; + templates|project_templates) + [ -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_template=$1" + shift + fi + apply playbooks/openshift-setup-templates.yml --extra-vars "$vars" "$@" || exit 1 + ;; + adei_template) + vars="ands_configure_project=adei ands_configure_template=60-adei.yml*" + apply playbooks/openshift-setup-templates.yml --extra-vars "$vars" "$@" || exit 1 + ;; openshift-masters) apply playbooks/openshift-add-masters.yml "$@" || exit 1 ;; -- cgit v1.2.1