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

Push helmfiles dir to cluster instead of cloning repo

parent 4595303c
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ collabora_password: "{{ lookup('password', '{{ secret_directory }}/collabora_adm
grafana_admin_password: "{{ lookup('password', '{{ secret_directory }}/grafana_admin_password chars=ascii_letters') }}"
# git repo versions
git_helmfiles_version: '00e4239375f4aab8779168e78d03f3f6fcb44a6f'
git_charts_version: 'HEAD'
git_local_storage_version: 'HEAD'
git_nextcloud_version: 'bd748d9a11111411d3c9e536f90d9909b01b5b72'
......
......@@ -12,6 +12,7 @@
- curl
- git
- nftables
- rsync
- snapd
- unattended-upgrades
# Update again after 1 day
......
---
- name: Clone helmfiles repo
- name: Remove old helmfiles repo
tags:
- helm
- helmfile
file:
path: '/oas/source/repos/helmfiles'
state: absent
- name: Synchronize helmfiles directory
tags:
- git
- helm
- helmfile
git:
repo: 'https://code.greenhost.net/openappstack/helmfiles'
dest: '/oas/source/repos/helmfiles'
version: '{{ git_helmfiles_version }}'
synchronize:
src: '../../helmfiles'
dest: '/oas/source'
delete: true
- name: Clone charts repo
tags:
......@@ -59,6 +67,7 @@
- name: Touch config file locations
tags:
- config
- helmfile
- oas
file:
state: touch
......@@ -85,10 +94,11 @@
- name: Apply helmfiles
tags:
- helmfile
- tmp
environment:
- COLLABORA_PASSWORD: "{{ collabora_password }}"
- NEXTCLOUD_PASSWORD: "{{ nextcloud_password }}"
- NEXTCLOUD_MARIADB_PASSWORD: "{{ nextcloud_mariadb_password }}"
- NEXTCLOUD_MARIADB_ROOT_PASSWORD: "{{ nextcloud_mariadb_root_password }}"
- GRAFANA_ADMIN_PASSWORD: "{{ grafana_admin_password }}"
command: '/usr/local/bin/helmfile -b /snap/bin/helm -e oas -f /oas/source/repos/helmfiles/helmfile.d/ apply --suppress-secrets'
command: '/usr/local/bin/helmfile -b /snap/bin/helm -e oas -f /oas/source/helmfiles/helmfile.d/ apply --suppress-secrets'
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