diff options
Diffstat (limited to 'terraform/dns')
-rw-r--r-- | terraform/dns/backend.tf | 16 | ||||
-rw-r--r-- | terraform/dns/dn42.tf | 46 | ||||
-rw-r--r-- | terraform/dns/main.tf | 12 | ||||
-rw-r--r-- | terraform/dns/terraform.tfstate | 52 | ||||
-rw-r--r-- | terraform/dns/terragrunt.hcl | 3 | ||||
-rw-r--r-- | terraform/dns/trygvis.tf | 2 | ||||
-rw-r--r-- | terraform/dns/vpn-cname.tf | 7 |
7 files changed, 109 insertions, 29 deletions
diff --git a/terraform/dns/backend.tf b/terraform/dns/backend.tf new file mode 100644 index 0000000..4f05aaf --- /dev/null +++ b/terraform/dns/backend.tf @@ -0,0 +1,16 @@ +# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa +terraform { + required_version = "~> 1.9.5" + + backend "s3" { + bucket = "terraform-a6726272-73ff-11ed-8bdd-c79eb8376e05" + key = "dns/terraform.tfstate" + skip_region_validation = true + skip_credentials_validation = true + skip_metadata_api_check = true + skip_requesting_account_id = true + skip_s3_checksum = true + region = "eu-central-1" + endpoints = { s3 : "https://eu-central-1.linodeobjects.com" } + } +} diff --git a/terraform/dns/dn42.tf b/terraform/dns/dn42.tf index 52a2628..5e39c97 100644 --- a/terraform/dns/dn42.tf +++ b/terraform/dns/dn42.tf @@ -7,25 +7,32 @@ resource "linode_domain_record" "dn42-conflatorio" { target = "fdb1:4242:3538:2008:8042:32ff:fe0c:7161" } -resource "linode_domain_record" "dn42-conflatorio-ix" { +resource "linode_domain_record" "dn42-coregonus" { domain_id = linode_domain.root.id - name = "conflatorio-ix.dn42" + name = "coregonus.dn42" record_type = "AAAA" - target = "fdb1:4242:3538:2001::ffff" + target = "fdb1:4242:3538:2005::ffff" } -resource "linode_domain_record" "dn42-coregonus-ix" { +resource "linode_domain_record" "dn42-danneri" { domain_id = linode_domain.root.id - name = "coregonus-ix.dn42" + name = "danneri.dn42" record_type = "AAAA" - target = "fdb1:4242:3538:2005::ffff" + target = "fdb1:4242:3538:2008:9422:d355:95b7:f170" } -resource "linode_domain_record" "dn42-danneri" { +resource "linode_domain_record" "dn42-hash" { domain_id = linode_domain.root.id - name = "danneri.dn42" + name = "hash.dn42" record_type = "AAAA" - target = "fdb1:4242:3538:2005:9422:d355:95b7:f170" + target = "fdb1:4242:3538:2007::ffff" +} + +resource "linode_domain_record" "dn42-homeassistant" { + domain_id = linode_domain.root.id + name = "homeassistant.dn42" + record_type = "AAAA" + target = "2a01:799:111d:1801:e0d7:757e:4080:a508" } resource "linode_domain_record" "dn42-knot" { @@ -48,3 +55,24 @@ resource "linode_domain_record" "dn42-lhn2pi" { record_type = "AAAA" target = "fdb1:4242:3538:2008::ffff" } + +resource "linode_domain_record" "dn42-node1" { + domain_id = linode_domain.root.id + name = "node1.dn42" + record_type = "AAAA" + target = "fdb1:4242:3538:2002::ffff" +} + +resource "linode_domain_record" "dn42-node2" { + domain_id = linode_domain.root.id + name = "node2.dn42" + record_type = "AAAA" + target = "fdb1:4242:3538:2003::ffff" +} + +resource "linode_domain_record" "dn42-unifi" { + domain_id = linode_domain.root.id + name = "unifi.dn42" + record_type = "AAAA" + target = "fdb1:4242:3538:2008:5054:ff:fe4d:96c" +} diff --git a/terraform/dns/main.tf b/terraform/dns/main.tf index 753ef75..812f3b2 100644 --- a/terraform/dns/main.tf +++ b/terraform/dns/main.tf @@ -1,16 +1,4 @@ terraform { - required_version = "~> 1.3.6" - - backend "s3" { - bucket = "terraform-a6726272-73ff-11ed-8bdd-c79eb8376e05" - key = "dns/terraform.tfstate" - region = "eu-central-1" - skip_region_validation = true - skip_credentials_validation = true - skip_metadata_api_check = true - endpoint = "eu-central-1.linodeobjects.com" - } - required_providers { linode = { version = "2.7.1" diff --git a/terraform/dns/terraform.tfstate b/terraform/dns/terraform.tfstate new file mode 100644 index 0000000..891db4d --- /dev/null +++ b/terraform/dns/terraform.tfstate @@ -0,0 +1,52 @@ +{ + "version": 3, + "serial": 1, + "lineage": "8244bd55-1992-3e9a-1072-28df4fb0d2f2", + "backend": { + "type": "s3", + "config": { + "access_key": null, + "acl": null, + "assume_role_duration_seconds": null, + "assume_role_policy": null, + "assume_role_policy_arns": null, + "assume_role_tags": null, + "assume_role_transitive_tag_keys": null, + "bucket": "terraform-a6726272-73ff-11ed-8bdd-c79eb8376e05", + "dynamodb_endpoint": null, + "dynamodb_table": null, + "encrypt": null, + "endpoint": "eu-central-1.linodeobjects.com", + "external_id": null, + "force_path_style": null, + "iam_endpoint": null, + "key": "dns/terraform.tfstate", + "kms_key_id": null, + "max_retries": null, + "profile": null, + "region": "eu-central-1", + "role_arn": null, + "secret_key": null, + "session_name": null, + "shared_credentials_file": null, + "skip_credentials_validation": true, + "skip_metadata_api_check": true, + "skip_region_validation": true, + "sse_customer_key": null, + "sts_endpoint": null, + "token": null, + "workspace_key_prefix": null + }, + "hash": 1226279900 + }, + "modules": [ + { + "path": [ + "root" + ], + "outputs": {}, + "resources": {}, + "depends_on": [] + } + ] +} diff --git a/terraform/dns/terragrunt.hcl b/terraform/dns/terragrunt.hcl new file mode 100644 index 0000000..e147285 --- /dev/null +++ b/terraform/dns/terragrunt.hcl @@ -0,0 +1,3 @@ +include "root" { + path = find_in_parent_folders() +} diff --git a/terraform/dns/trygvis.tf b/terraform/dns/trygvis.tf index 608dd3e..4dcec85 100644 --- a/terraform/dns/trygvis.tf +++ b/terraform/dns/trygvis.tf @@ -170,7 +170,7 @@ resource "linode_domain_record" "grafana" { domain_id = linode_domain.root.id name = "grafana" record_type = "CNAME" - target = "vs.trygvis.io" + target = "hash.trygvis.io" } resource "linode_domain_record" "owncloud" { diff --git a/terraform/dns/vpn-cname.tf b/terraform/dns/vpn-cname.tf index 7a9fba4..c03b2bb 100644 --- a/terraform/dns/vpn-cname.tf +++ b/terraform/dns/vpn-cname.tf @@ -19,13 +19,6 @@ resource "linode_domain_record" "vpn-unifi" { target = "${linode_domain_record.net-conflatorio.name}.trygvis.io" } -resource "linode_domain_record" "vpn-grafana" { - domain_id = linode_domain.root.id - name = "grafana.vpn" - record_type = "CNAME" - target = "${linode_domain_record.net-conflatorio.name}.trygvis.io" -} - resource "linode_domain_record" "vpn-influxdb" { domain_id = linode_domain.root.id name = "influxdb.vpn" |