From df99d91c0152a423560fe1c8f5c0db2afbbe45a6 Mon Sep 17 00:00:00 2001 From: Hakan Bayindir Date: Tue, 17 Sep 2024 11:54:22 +0300 Subject: [PATCH] bug: Add missing DNS entries to internal network. This commit adds DNS servers to internal network during creation, allowing VMs behind NAT to be able to resolve hosts without manual configuration. With this change, this TF+Ansible playbook can be deployed to create a working infrastructure with no configuration beyond vars.tf file. --Hakan --- tf/int_network.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/tf/int_network.tf b/tf/int_network.tf index 229889e..85dbce6 100644 --- a/tf/int_network.tf +++ b/tf/int_network.tf @@ -9,6 +9,7 @@ resource "openstack_networking_subnet_v2" "internal" { cidr = var.private_network["cidr4"] ip_version = 4 enable_dhcp = true + dns_nameservers = ["1.1.1.1","1.0.0.1","8.8.8.8"] } resource "openstack_networking_router_v2" "router_1" {