added correct DNS Server to subnets

This commit is contained in:
2025-06-13 00:11:58 +02:00
parent 17cf46c3fd
commit c8cb87f0ae
3 changed files with 45 additions and 10 deletions
+2
View File
@@ -70,6 +70,7 @@ resource "openstack_networking_subnet_v2" "hnrx-prod" {
}
enable_dhcp = true
gateway_ip = "192.168.113.1"
dns_nameservers = ["192.168.1.1"]
}
resource "openstack_networking_subnet_v2" "hnrx-dev" {
@@ -82,6 +83,7 @@ resource "openstack_networking_subnet_v2" "hnrx-dev" {
}
enable_dhcp = true
gateway_ip = "192.168.112.1"
dns_nameservers = ["192.168.1.1"]
}
+9 -5
View File
@@ -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",
+30 -1
View File
@@ -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",