Skip to content
Snippets Groups Projects
Commit 91f97990 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

make separate commands for each helmfile to apply, so we can make sure local...

make separate commands for each helmfile to apply, so we can make sure local storage and nginx exists before monitoring, but nextcloud is made after monitoring
parent b0abfeec
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,36 @@
- servicemonitor.crd.yaml
- podmonitor.crd.yaml
- name: Apply storage helmfile
tags:
- helmfile
shell: |
set -e -x -o pipefail
/usr/local/bin/helmfile -b /usr/local/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 search("storage")
- name: Apply nginx helmfile
tags:
- helmfile
shell: |
set -e -x -o pipefail
/usr/local/bin/helmfile -b /usr/local/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 search("nginx")
# Force needed for upgrading from 5 to 6: https://github.com/helm/charts/tree/master/stable/prometheus-operator#upgrading-from-5xx-to-6xx
- name: Apply monitoring helmfile with force
tags:
......@@ -56,7 +86,7 @@
with_items: "{{ helmfiles }}"
when: item is search("monitoring")
- name: Apply remaining helmfiles
- name: Apply nextcloud helmfile
tags:
- helmfile
environment:
......@@ -66,7 +96,6 @@
- ONLYOFFICE_JWT_SECRET: "{{ onlyoffice_jwt_secret }}"
- ONLYOFFICE_POSTGRESQL_PASSWORD: "{{ onlyoffice_postgresql_password }}"
- ONLYOFFICE_RABBITMQ_PASSWORD: "{{ onlyoffice_rabbitmq_password }}"
- GRAFANA_ADMIN_PASSWORD: "{{ grafana_admin_password }}"
shell: |
set -e -x -o pipefail
/usr/local/bin/helmfile -b /usr/local/bin/helm -e oas \
......@@ -77,4 +106,4 @@
args:
executable: /bin/bash
loop: "{{ helmfiles }}"
when: item is not search("cert-manager") and item is not search("monitoring")
when: item is search("nextcloud")
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