fix(install): update db resources

This commit is contained in:
Rajesh Rajendran 2021-07-09 00:00:19 +05:30
parent 4c673ec147
commit 449ea79750
2 changed files with 2 additions and 4 deletions

View file

@ -128,7 +128,7 @@ function app(){
exit 0
;;
postgresql|redis|clickhouse)
ansible-playbook -c local setup.yaml -e @vars.yaml -e scale=$installation_type -e db_name=$1 --tags db -v
ansible-playbook -c local setup.yaml -e @vars.yaml -e scale=$installation_type -e db_name=$1 --tags template --tags db -v
exit 0
;;
frontend)

View file

@ -2,9 +2,7 @@
---
- name: Installing specific db
shell: |
override=''
[[ -f /tmp/'{{ db_name }}.yaml' ]] && override='-f /tmp/{{ db_name }}.yaml' || true
helm upgrade --install -n db {{ db_name }} -f app/{{ db_name }}.yaml ${override} ./db/{{ db_name }} --create-namespace
helm upgrade --install -n db {{ db_name }} -f /tmp/{{ db_name }}.yaml ./db/{{ db_name }} --wait --create-namespace
args:
executable: /bin/bash
when: db_name|length > 0