From d7b5b65b0c0e5b95c83c7f05e57b396057299a74 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 13 Jan 2024 20:10:41 +0200 Subject: [PATCH] Connect postgres-backup directly to Postgres network, if integrated Postgres is used This saves us one container network in the ideal case. --- group_vars/matrix_servers | 2 ++ 1 file changed, 2 insertions(+) diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index 3feec75e9..cfaccffee 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -3875,6 +3875,8 @@ 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_network: "{{ (devture_postgres_container_network if (devture_postgres_enabled and devture_postgres_backup_connection_hostname == devture_postgres_connection_hostname) else devture_postgres_identifier) }}" + 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 [])