Add the postgres network to the swarm workers.

This commit is contained in:
Andrea Dell'Amico 2023-12-05 18:24:11 +01:00
parent 6679988794
commit 8dc1f6baec
Signed by untrusted user: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,9 @@ resource "openstack_compute_instance_v2" "docker_swarm_workers" {
network {
name = var.swarm_nfs_private_network.network_name
}
network {
name = var.networks_list.shared_postgresql
}
user_data = file("${var.ubuntu2204_data_file}")
depends_on = [openstack_networking_subnet_v2.swarm_nfs_subnet]