terraform: halfway working DNS for hosting.de

This commit is contained in:
b12f 2024-08-14 23:11:14 +02:00
parent e712fd4515
commit b3800fb26f
Signed by: b12f
GPG key ID: 729956E1124F8F26
4 changed files with 35 additions and 27 deletions

View file

@ -2,24 +2,24 @@
# Manual edits may be lost in future updates.
provider "registry.opentofu.org/pub-solar/hostingde" {
version = "0.0.8"
constraints = ">= 0.0.8"
version = "1.0.0"
constraints = ">= 1.0.0"
hashes = [
"h1:QLtl7oxCYpLqB6MS049/OfOq8OxR8RijRB7P1MDDh/o=",
"zh:04e8a62a98b19d680bf2901cbb93459f09bf2ff1ea656b3f5e1aed44f30e4c7b",
"zh:2291c5ffb1e66ed106793d632317c2a43f801791d666976a98d778e922b6621d",
"zh:40b6400f3839553e0ba36a0df42e6497fdf28a40c7d3613a59484bcfdd38e262",
"zh:539bbbbeef0db9b46ecafe52d9aa928443738937f3d81651b0d5a3c8fd040eff",
"zh:7b3036c39746981ca7b47374c8be2b79f06c94cd3827f8dac5a79ee262ff3ae2",
"h1:N9iiS463R+89AoI0GFRzNW5aWq/oyKtq3jnmt5ONfyo=",
"zh:0d49b8dc76e57434a7781b3799cb52adac25ab17fb460557730d919c1d217607",
"zh:477a62f59af50f0eb80e32bd1130f456275189d2106c28edd366fb406bec3f12",
"zh:53a387c3857dbb4b920b292ef7f8e5fbc57decf7a6d6cd5c717d783c0a13dd6c",
"zh:63fedb3f89d4ebccd9d5684c4883405f81d8004ddbf7b7073aa86325b27067a3",
"zh:6add8d46b0c481b2adf30b1969a5f5f60b937637f4a248e7e4402b1d248a8b17",
"zh:6b3f1acb616bf7df7381de9da8d835bd54567362b7e94b2615ce86430b03643b",
"zh:77690f8b9b1237efecf4af969a8cdcdc62aa6e74ca446da36780be65372bf77d",
"zh:86842ad7658c930b01d46efc8ce468c6d31d91acb1c2bb62204ba1e477fb3ff0",
"zh:890df766e9b839623b1f0437355032a3c006226a6c200cd911e15ee1a9014e9f",
"zh:ab28b68f25704f89944011b947d4c421bcb8280cfb5e70e22729143c43b046bb",
"zh:afffa7b0d628fd2d62b1ffa5a897061e4f2935f1a80b544c16c18342c6a7dec8",
"zh:ba7190619079ae95f0211e5d99f969a99bcc61422e5e5051f3d8cdea3fb57d79",
"zh:c97588679fe227b2dc157b73e49214fa5ff3b8f421723babc83833d8c5eab7e9",
"zh:ca3a9e5d393a07954ffad26afb1b3dcf94d9937da177f14cecf33290e8859138",
"zh:cfb48d7633bb83e1aa635d40cf12295937f9aae93ab204bd15f345ff4ea2e271",
"zh:dfe4c7665639d7cdc223cfd754d2bb9d9e94bacde2bdcbce3617a7a23547f0b7",
"zh:e9da820f3c621101bab9aa08b13516598ad66885ec013b09cd7c9ab806956e5e",
"zh:fcdd460b08f74a3dd5cf442b687c44e513eb46373ba57dcff0808f5a7da56a5d",
"zh:8afeb57edfcd74a2850c696b684132ced03cd286290d7ed96da16def3a7e826e",
"zh:921a26f0b5181c32802cd91b6d421fbbb20c60022212b5735864078d0d0cbf48",
"zh:96c7792573db51e3a693c4a63d9b2a87f6c59934bd6e707ad9a7223e079bb602",
"zh:af85b3450d8e3431a0887c23f905fbb5524495c4cc3c59a4f62382571f028c6a",
"zh:dab495503cac0de64343539a4d6e0e9444208f483698e3c37c37a6572571b377",
"zh:e9ea2db0facd0ef80a5e8772cee15806551c6871c3b170e9eb444d07a76bc116",
]
}

View file

@ -104,7 +104,7 @@ resource "hostingde_record" "b12f-spf" {
zone_id = hostingde_zone.b12f.id
name = "b12f.io"
type = "TXT"
content = "\"v=spf1 a:mail.b12f.io -all\""
content = "v=spf1 a:mail.b12f.io -all"
ttl = 300
}
@ -112,7 +112,7 @@ resource "hostingde_record" "b12f-dkim" {
zone_id = hostingde_zone.b12f.id
name = "default._domainkey.b12f.io"
type = "TXT"
content = "\"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyla9hW3TvoXvZQxwzaJ4SZ9ict1HU3E6+FWlwNIgE6tIpTCyRJtiSIUDqB8TLTIBoxIs+QQBXZi+QUi3Agu6OSY2RiV0EwO8+oOOqOD9pERftc/aqe51cXuv4kPqwvpXEBwrXFWVM+VxivEubUJ7eKkFyXJpelv0LslXv/MmYbUyed6dF+reOGZCsvnbiRv74qdxbAL/25j62E8WrnxzJwhUtx/JhdBOjsHBvuw9hy6rZsVJL9eXayWyGRV6qmsLRzsRSBs+mDrgmKk4dugADd11+A03ics3i8hplRoWDkqnNKz1qy4f5TsV6v9283IANrAzRfHwX8EvNiFsBz+ZCQIDAQAB\""
content = "v=DKIM1;k=rsa;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyla9hW3TvoXvZQxwzaJ4SZ9ict1HU3E6+FWlwNIgE6tIpTCyRJtiSIUDqB8TLTIBoxIs+QQBXZi+QUi3Agu6OSY2RiV0EwO8+oOOqOD9pERftc/aqe51cXuv4kPqwvpXEBwrXFWVM+VxivEubUJ7eKkFyXJpelv0LslXv/MmYbUyed6dF+reOGZCsvnbiRv74qdxbAL/25j62E8WrnxzJwhUtx/JhdBOjsHBvuw9hy6rZsVJL9eXayWyGRV6qmsLRzsRSBs+mDrgmKk4dugADd11+A03ics3i8hplRoWDkqnNKz1qy4f5TsV6v9283IANrAzRfHwX8EvNiFsBz+ZCQIDAQAB"
ttl = 300
}
@ -120,7 +120,7 @@ resource "hostingde_record" "b12f-dmarc" {
zone_id = hostingde_zone.b12f.id
name = "_dmarc.b12f.io"
type = "TXT"
content = "\"v=DMARC1; p=none;\""
content = "v=DMARC1;p=none;"
ttl = 300
}
@ -160,7 +160,7 @@ resource "hostingde_record" "b12f-invoicing" {
zone_id = hostingde_zone.b12f.id
name = "invoicing.b12f.io"
type = "CNAME"
content = "frikandel.b12f.io"
content = "pie.b12f.io"
ttl = 300
}

View file

@ -3,11 +3,19 @@ resource "hostingde_zone" "mezza" {
type = "NATIVE"
}
resource "hostingde_record" "mezza-web" {
resource "hostingde_record" "mezza-AAAA" {
zone_id = hostingde_zone.mezza.id
name = "mezza.biz"
type = "CNAME"
content = "frikandel.b12f.io"
type = "AAAA"
content = "2a01:4f8:c2c:b60::"
ttl = 300
}
resource "hostingde_record" "mezza-A" {
zone_id = hostingde_zone.mezza.id
name = "mezza.biz"
type = "A"
content = "128.140.109.213"
ttl = 300
}
@ -15,6 +23,6 @@ resource "hostingde_record" "mezza-www" {
zone_id = hostingde_zone.mezza.id
name = "www.mezza.biz"
type = "CNAME"
content = "frikandel.b12f.io"
content = "mezza.biz"
ttl = 300
}

View file

@ -1,10 +1,10 @@
terraform {
required_version = "~> 1.6.1"
required_version = "~> 1.7.1"
required_providers {
hostingde = {
source = "pub-solar/hostingde"
version = ">=0.0.8"
version = ">=1.0.0"
}
}
}