Add OneLab Helm chart, Argo CD Application, and GitOps values for k3s
Made-with: Cursor
This commit is contained in:
14
app/playbooks/tasks/pre-db-migration.yml
Normal file
14
app/playbooks/tasks/pre-db-migration.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- include_tasks: "{{ installer_path }}/app/playbooks/tasks/start-db-only.yml"
|
||||
|
||||
- name: Backing up database
|
||||
shell:
|
||||
docker exec -i $(docker ps --filter "name=onelab_db|onelab-db" -q) pg_dump -Upostgres -Fc > {{ onelab_path }}/db-migration-postgres.tar.gz
|
||||
become: yes
|
||||
|
||||
- include_tasks: "{{ installer_path }}/app/playbooks/tasks/stop-db-only.yml"
|
||||
|
||||
- name: Creating lock file
|
||||
shell: >
|
||||
touch {{ onelab_path }}/.lock_db_migration
|
||||
become: true
|
||||
Reference in New Issue
Block a user