diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-04-11 00:30:58 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-04-11 00:30:58 +0200 |
commit | bc6b5cb5ad7dec5158e0005433b02a951daf9191 (patch) | |
tree | b3125932ed468aac2b34124fe4be361a8de7fbe7 /setup.sh | |
parent | 5a15f65db3dfb245919bdd534e93bd711db2eb60 (diff) | |
download | ands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.tar.gz ands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.tar.bz2 ands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.tar.xz ands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.zip |
Support executing custom scripts and provide mode to update just ADEI template
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 ;; |