mirror of
https://github.com/mother-of-all-self-hosting/mash-playbook
synced 2024-11-10 06:14:17 +00:00
Upgrade postgres-backup and run it in its own container network, connected to the Postgres one
This commit is contained in:
parent
a710fda632
commit
d967f22776
2 changed files with 11 additions and 10 deletions
|
@ -888,19 +888,20 @@ devture_postgres_backup_architecture: "{{ mash_playbook_architecture }}"
|
|||
|
||||
devture_postgres_backup_base_path: "{{ mash_playbook_base_path }}/{{ mash_playbook_service_base_directory_name_prefix }}postgres-backup"
|
||||
|
||||
devture_postgres_backup_systemd_required_services_list: |
|
||||
{{
|
||||
(['docker.service'])
|
||||
+
|
||||
([(devture_postgres_identifier + '.service')] if devture_postgres_enabled else [])
|
||||
}}
|
||||
|
||||
devture_postgres_backup_container_network: "{{ devture_postgres_container_network }}"
|
||||
|
||||
devture_postgres_backup_uid: "{{ mash_playbook_uid }}"
|
||||
devture_postgres_backup_gid: "{{ mash_playbook_gid }}"
|
||||
|
||||
# role-specific:postgres
|
||||
devture_postgres_backup_systemd_required_services_list_auto: |
|
||||
{{
|
||||
([(devture_postgres_identifier + '.service')] if (devture_postgres_enabled and devture_postgres_backup_connection_hostname == devture_postgres_connection_hostname) else [])
|
||||
}}
|
||||
|
||||
devture_postgres_backup_container_additional_networks_auto: |-
|
||||
{{
|
||||
([devture_postgres_container_network] if (devture_postgres_enabled and devture_postgres_backup_connection_hostname == devture_postgres_connection_hostname and devture_postgres_backup_container_network != devture_postgres_container_network) else [])
|
||||
}}
|
||||
|
||||
devture_postgres_backup_connection_hostname: "{{ devture_postgres_connection_hostname if devture_postgres_enabled else '' }}"
|
||||
devture_postgres_backup_connection_port: "{{ devture_postgres_connection_port if devture_postgres_enabled else 5432 }}"
|
||||
devture_postgres_backup_connection_username: "{{ devture_postgres_connection_username if devture_postgres_enabled else '' }}"
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
name: postgres
|
||||
activation_prefix: devture_postgres_
|
||||
- src: git+https://github.com/devture/com.devture.ansible.role.postgres_backup.git
|
||||
version: b29a9c551dd09079f5ef26d494973a499088b9e8
|
||||
version: 9185490c32eadc4f06d5ba9c6eeea02704573065
|
||||
name: postgres_backup
|
||||
activation_prefix: devture_postgres_backup_
|
||||
- src: git+https://github.com/mother-of-all-self-hosting/ansible-role-prometheus.git
|
||||
|
|
Loading…
Reference in a new issue