Skip to content
Snippets Groups Projects
Verified Commit d7497192 authored by Varac's avatar Varac
Browse files

Fail if helmfile apply fails

parent f2e5d4d7
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@
- helmfile
- cert-manager
shell: |
set -e -x -o pipefail
/usr/local/bin/helmfile \
-b /snap/bin/helm \
-e oas \
......@@ -53,3 +54,5 @@
--suppress-secrets \
| sed 's/\x1B\[[0-9;]*[JKmsu]//g' \
>> {{ log_directory }}/helmfile.log
args:
executable: /bin/bash
......@@ -23,6 +23,14 @@
- NEXTCLOUD_MARIADB_PASSWORD: "{{ nextcloud_mariadb_password }}"
- NEXTCLOUD_MARIADB_ROOT_PASSWORD: "{{ nextcloud_mariadb_root_password }}"
- GRAFANA_ADMIN_PASSWORD: "{{ grafana_admin_password }}"
shell: /usr/local/bin/helmfile -b /snap/bin/helm -e oas -f {{ data_directory }}/source/helmfiles/helmfile.d/{{ item }}.yaml apply --suppress-secrets | sed 's/\x1B\[[0-9;]*[JKmsu]//g' >> {{ log_directory }}/helmfile.log
shell: |
set -e -x -o pipefail
/usr/local/bin/helmfile -b /snap/bin/helm -e oas \
-f {{ data_directory }}/source/helmfiles/helmfile.d/{{ item }}.yaml \
apply --suppress-secrets \
| sed 's/\x1B\[[0-9;]*[JKmsu]//g' \
>> {{ log_directory }}/helmfile.log
args:
executable: /bin/bash
with_items: "{{ helmfiles }}"
when: item is not search("cert-manager")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment