From c95aa2b824866edd275732226685358448efbee7 Mon Sep 17 00:00:00 2001 From: Noah Date: Thu, 1 Jan 2026 18:47:16 +0100 Subject: [PATCH] added 2 dns entries --- terraform/modules/dns/avlabs/main.tf | 24 +++++ terraform/terraform.tfstate | 66 +++++++++++- terraform/terraform.tfstate.backup | 151 ++++++++++++++++++++++++++- 3 files changed, 239 insertions(+), 2 deletions(-) diff --git a/terraform/modules/dns/avlabs/main.tf b/terraform/modules/dns/avlabs/main.tf index 26cfb83..8edec58 100644 --- a/terraform/modules/dns/avlabs/main.tf +++ b/terraform/modules/dns/avlabs/main.tf @@ -53,3 +53,27 @@ resource "hcloud_zone_rrset" "txt" { change_protection = false } + +resource "hcloud_zone_rrset" "gitea" { + zone = hcloud_zone.avlabs.name + name = "gitea" + type = "A" + + records = [ + { value = "91.98.205.65", comment = "Gitea Server" }, + ] + + change_protection = false +} + +resource "hcloud_zone_rrset" "netbox" { + zone = hcloud_zone.avlabs.name + name = "netbox" + type = "A" + + records = [ + { value = "91.98.205.65", comment = "Netbox Server" }, + ] + + change_protection = false +} diff --git a/terraform/terraform.tfstate b/terraform/terraform.tfstate index 18d5398..f4df926 100644 --- a/terraform/terraform.tfstate +++ b/terraform/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.14.3", - "serial": 53, + "serial": 59, "lineage": "7c69e311-e46b-0d39-a679-49d13d742523", "outputs": {}, "resources": [ @@ -203,6 +203,38 @@ } ] }, + { + "module": "module.dns-avlabs", + "mode": "managed", + "type": "hcloud_zone_rrset", + "name": "gitea", + "provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "change_protection": false, + "id": "gitea/A", + "labels": {}, + "name": "gitea", + "records": [ + { + "comment": "Gitea Server", + "value": "91.98.205.65" + } + ], + "ttl": null, + "type": "A", + "zone": "avlabs.ovh" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "dependencies": [ + "module.dns-avlabs.hcloud_zone.avlabs" + ] + } + ] + }, { "module": "module.dns-avlabs", "mode": "managed", @@ -239,6 +271,38 @@ } ] }, + { + "module": "module.dns-avlabs", + "mode": "managed", + "type": "hcloud_zone_rrset", + "name": "netbox", + "provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "change_protection": false, + "id": "netbox/A", + "labels": {}, + "name": "netbox", + "records": [ + { + "comment": "Netbox Server", + "value": "91.98.205.65" + } + ], + "ttl": null, + "type": "A", + "zone": "avlabs.ovh" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "dependencies": [ + "module.dns-avlabs.hcloud_zone.avlabs" + ] + } + ] + }, { "module": "module.dns-avlabs", "mode": "managed", diff --git a/terraform/terraform.tfstate.backup b/terraform/terraform.tfstate.backup index f25bb79..28b00b1 100644 --- a/terraform/terraform.tfstate.backup +++ b/terraform/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.14.3", - "serial": 46, + "serial": 56, "lineage": "7c69e311-e46b-0d39-a679-49d13d742523", "outputs": {}, "resources": [ @@ -203,6 +203,38 @@ } ] }, + { + "module": "module.dns-avlabs", + "mode": "managed", + "type": "hcloud_zone_rrset", + "name": "gitea", + "provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "change_protection": false, + "id": "gitea/A", + "labels": {}, + "name": "gitea", + "records": [ + { + "comment": "Gitea Server", + "value": "91.98.205.65" + } + ], + "ttl": null, + "type": "A", + "zone": "avlabs.ovh" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "dependencies": [ + "module.dns-avlabs.hcloud_zone.avlabs" + ] + } + ] + }, { "module": "module.dns-avlabs", "mode": "managed", @@ -410,6 +442,123 @@ } ] }, + { + "module": "module.netbox-regions", + "mode": "managed", + "type": "netbox_region", + "name": "asia", + "provider": "provider[\"registry.terraform.io/e-breuninger/netbox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "description": "", + "id": "2", + "name": "Asia", + "parent_region_id": 0, + "slug": "asia" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.netbox-regions", + "mode": "managed", + "type": "netbox_region", + "name": "bavaria", + "provider": "provider[\"registry.terraform.io/e-breuninger/netbox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "description": "", + "id": "5", + "name": "Bavaria", + "parent_region_id": 4, + "slug": "bavaria" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "private": "bnVsbA==", + "dependencies": [ + "module.netbox-regions.netbox_region.europe", + "module.netbox-regions.netbox_region.germany" + ] + } + ] + }, + { + "module": "module.netbox-regions", + "mode": "managed", + "type": "netbox_region", + "name": "europe", + "provider": "provider[\"registry.terraform.io/e-breuninger/netbox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "description": "", + "id": "1", + "name": "Europe", + "parent_region_id": 0, + "slug": "europe" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.netbox-regions", + "mode": "managed", + "type": "netbox_region", + "name": "germany", + "provider": "provider[\"registry.terraform.io/e-breuninger/netbox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "description": "", + "id": "4", + "name": "Germany", + "parent_region_id": 1, + "slug": "germany" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "private": "bnVsbA==", + "dependencies": [ + "module.netbox-regions.netbox_region.europe" + ] + } + ] + }, + { + "module": "module.netbox-regions", + "mode": "managed", + "type": "netbox_region", + "name": "northamerica", + "provider": "provider[\"registry.terraform.io/e-breuninger/netbox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "description": "", + "id": "3", + "name": "North America", + "parent_region_id": 0, + "slug": "north-america" + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "private": "bnVsbA==" + } + ] + }, { "module": "module.netbox-sites", "mode": "managed",