diff --git a/main.tf b/main.tf index 190d8b1..c2bc3ae 100644 --- a/main.tf +++ b/main.tf @@ -68,8 +68,9 @@ resource "openstack_networking_subnet_v2" "hnrx-prod" { start = "192.168.113.10" end = "192.168.113.200" } - enable_dhcp = true - gateway_ip = "192.168.113.1" + enable_dhcp = true + gateway_ip = "192.168.113.1" + dns_nameservers = ["192.168.1.1"] } resource "openstack_networking_subnet_v2" "hnrx-dev" { @@ -80,8 +81,9 @@ resource "openstack_networking_subnet_v2" "hnrx-dev" { start = "192.168.112.10" end = "192.168.112.200" } - enable_dhcp = true - gateway_ip = "192.168.112.1" + enable_dhcp = true + gateway_ip = "192.168.112.1" + dns_nameservers = ["192.168.1.1"] } diff --git a/terraform.tfstate b/terraform.tfstate index d271861..74491e5 100644 --- a/terraform.tfstate +++ b/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.12.1", - "serial": 214, + "serial": 217, "lineage": "380e7668-64eb-52d5-fbac-0395ca160fd9", "outputs": {}, "resources": [ @@ -335,12 +335,12 @@ { "schema_version": 0, "attributes": { - "attributes": null, + "attributes": {}, "description": "default hnrx dev zone", "disable_status_check": false, "email": "matthias.hinrichs@hnrx.net", "id": "135421f7-7bca-4015-a262-b76e7b549540", - "masters": null, + "masters": [], "name": "dev.hnrx.cloud.", "project_id": "fad7e11f880840b6bc739aa72d470bfc", "region": "RegionOne", @@ -1040,7 +1040,9 @@ ], "cidr": "192.168.112.0/24", "description": "", - "dns_nameservers": [], + "dns_nameservers": [ + "192.168.1.1" + ], "dns_publish_fixed_ip": false, "enable_dhcp": true, "gateway_ip": "192.168.112.1", @@ -1087,7 +1089,9 @@ ], "cidr": "192.168.113.0/24", "description": "", - "dns_nameservers": [], + "dns_nameservers": [ + "192.168.1.1" + ], "dns_publish_fixed_ip": false, "enable_dhcp": true, "gateway_ip": "192.168.113.1", diff --git a/terraform.tfstate.backup b/terraform.tfstate.backup index b9165f6..d271861 100644 --- a/terraform.tfstate.backup +++ b/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.12.1", - "serial": 212, + "serial": 214, "lineage": "380e7668-64eb-52d5-fbac-0395ca160fd9", "outputs": {}, "resources": [ @@ -326,6 +326,35 @@ } ] }, + { + "mode": "managed", + "type": "openstack_dns_zone_v2", + "name": "hnrx-dev-zone", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "attributes": null, + "description": "default hnrx dev zone", + "disable_status_check": false, + "email": "matthias.hinrichs@hnrx.net", + "id": "135421f7-7bca-4015-a262-b76e7b549540", + "masters": null, + "name": "dev.hnrx.cloud.", + "project_id": "fad7e11f880840b6bc739aa72d470bfc", + "region": "RegionOne", + "timeouts": null, + "ttl": 60, + "type": "PRIMARY", + "value_specs": null + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19" + } + ] + }, { "mode": "managed", "type": "openstack_dns_zone_v2",