From 7b54c597479e12a830d9a33c9380c21f656527f1 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 13 Jan 2024 20:12:11 +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. --- templates/group_vars_mash_servers | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/group_vars_mash_servers b/templates/group_vars_mash_servers index a9e4ec2..da67ff0 100644 --- a/templates/group_vars_mash_servers +++ b/templates/group_vars_mash_servers @@ -897,6 +897,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_backup_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 [])