Fix records for Gandi

This commit is contained in:
Jake Howard 2025-04-06 18:23:21 +01:00
parent 8b097addeb
commit 68986b2cfc
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 56 additions and 56 deletions

View file

@ -8,7 +8,7 @@ resource "gandi_livedns_record" "orngone_apex" {
type = "ALIAS" # Gandi doesn't support CNAME-flattening
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -29,6 +29,6 @@ resource "gandi_livedns_record" "orngone_who" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}

View file

@ -96,10 +96,10 @@ resource "linode_firewall" "casey" {
resource "linode_rdns" "casey_reverse_ipv4" {
address = linode_instance.casey.ip_address
rdns = gandi_livedns_record.sys_domain_casey.href
rdns = "${gandi_livedns_record.sys_domain_casey.name}.${gandi_livedns_record.sys_domain_casey.zone}"
}
resource "linode_rdns" "casey_reverse_ipv6" {
address = split("/", linode_instance.casey.ipv6)[0]
rdns = gandi_livedns_record.sys_domain_casey.href
rdns = "${gandi_livedns_record.sys_domain_casey.name}.${gandi_livedns_record.sys_domain_casey.zone}"
}

View file

@ -16,7 +16,7 @@ resource "gandi_livedns_record" "jakehowardtech_mx" {
resource "gandi_livedns_record" "jakehowardtech_spf" {
zone = data.gandi_livedns_domain.jakehowardtech.id
name = "@"
type = "TXT"
type = "SPF"
ttl = 3600
values = [
"\"v=spf1 include:spf.messagingengine.com -all\""
@ -69,7 +69,7 @@ resource "gandi_livedns_record" "jakehowardtech_wallabag" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -79,7 +79,7 @@ resource "gandi_livedns_record" "jakehowardtech_ttrss" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -89,7 +89,7 @@ resource "gandi_livedns_record" "jakehowardtech_speed" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -99,7 +99,7 @@ resource "gandi_livedns_record" "jakehowardtech_quassel" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -109,7 +109,7 @@ resource "gandi_livedns_record" "jakehowardtech_media" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -119,7 +119,7 @@ resource "gandi_livedns_record" "jakehowardtech_matrix" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -129,7 +129,7 @@ resource "gandi_livedns_record" "jakehowardtech_intersect" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -139,7 +139,7 @@ resource "gandi_livedns_record" "jakehowardtech_calibre" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -149,7 +149,7 @@ resource "gandi_livedns_record" "jakehowardtech_homeassistant" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve_private.href}."
"${gandi_livedns_record.sys_domain_pve_private.name}.${gandi_livedns_record.sys_domain_pve_private.zone}."
]
}
@ -159,7 +159,7 @@ resource "gandi_livedns_record" "jakehowardtech_grafana" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -169,7 +169,7 @@ resource "gandi_livedns_record" "jakehowardtech_vaultwarden" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve_private.href}."
"${gandi_livedns_record.sys_domain_pve_private.name}.${gandi_livedns_record.sys_domain_pve_private.zone}."
]
}
@ -179,14 +179,14 @@ resource "gandi_livedns_record" "jakehowardtech_recipes" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
resource "gandi_livedns_record" "jakehowardtech_mailgun_spf" {
zone = data.gandi_livedns_domain.jakehowardtech.id
name = "mg"
type = "TXT"
type = "SPF"
ttl = 3600
values = [
"\"v=spf1 include:mailgun.org -all\""
@ -199,7 +199,7 @@ resource "gandi_livedns_record" "jakehowardtech_mailgun_dkim" {
type = "TXT"
ttl = 3600
values = [
"\"k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4E4cv86U+sFUjgLys26ZLccTghzGfHiFpitWdFg68lGXG63aoG2/+9bgKVT0ZBG7bjPvj6Kyj4N3TIe4oCJo2saVvtsNK1pvZkOadaBPgjzKeRvBaw48ZatUGKoV7q1NCa0kXAfiJleF7bMvbt8rYDmBljr/BG6TtZYPt6XgoZyh8HHXjv/1L6WT3JBVQ8q5UtqVRVujXNHf57FmJTOJpvs0bKn/6TUaXYZmt5z3jpDhc/HfmkzVV22AwRf9jn7kgKkgaKpkvfSL8gtYNn5oyfS0Y9W9x9ntqb4g72RCbynMppQb1uwxbIuWRVOp0un0koQDm3C8ZzhOOYAwe58BYQIDAQAB\""
"\"k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4E4cv86U+sFUjgLys26ZLccTghzGfHiFpitWdFg68lGXG63aoG2/+9bgKVT0ZBG7bjPvj6Kyj4N3TIe4oCJo2saVvtsNK1pvZ\" \"kOadaBPgjzKeRvBaw48ZatUGKoV7q1NCa0kXAfiJleF7bMvbt8rYDmBljr/BG6TtZYPt6XgoZyh8HHXjv/1L6WT3JBVQ8q5UtqVRVujXNHf57FmJTOJpvs0bKn/6TUaXYZmt5z3jpDhc/HfmkzVV22\" \"AwRf9jn7kgKkgaKpkvfSL8gtYNn5oyfS0Y9W9x9ntqb4g72RCbynMppQb1uwxbIuWRVOp0un0koQDm3C8ZzhOOYAwe58BYQIDAQAB\""
]
}
@ -219,7 +219,7 @@ resource "gandi_livedns_record" "jakehowardtech_synapse_admin" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -229,7 +229,7 @@ resource "gandi_livedns_record" "jakehowardtech_apex" {
type = "ALIAS"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
"${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}."
]
}
@ -239,7 +239,7 @@ resource "gandi_livedns_record" "jakehowardtech_collabora" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -249,7 +249,7 @@ resource "gandi_livedns_record" "jakehowardtech_tasks" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -259,7 +259,7 @@ resource "gandi_livedns_record" "jakehowardtech_auth" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -269,7 +269,7 @@ resource "gandi_livedns_record" "jakehowardtech_minio" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -279,7 +279,7 @@ resource "gandi_livedns_record" "jakehowardtech_s3" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -289,7 +289,7 @@ resource "gandi_livedns_record" "jakehowardtech_ntfy" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -299,7 +299,7 @@ resource "gandi_livedns_record" "jakehowardtech_headscale" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_casey.href}."
"${gandi_livedns_record.sys_domain_casey.name}.${gandi_livedns_record.sys_domain_casey.zone}."
]
}
@ -309,7 +309,7 @@ resource "gandi_livedns_record" "jakehowardtech_slides" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
"${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}."
]
}
@ -319,7 +319,7 @@ resource "gandi_livedns_record" "jakehowardtech_uptime" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -329,7 +329,7 @@ resource "gandi_livedns_record" "jakehowardtech_baby-buddy" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve_private.href}."
"${gandi_livedns_record.sys_domain_pve_private.name}.${gandi_livedns_record.sys_domain_pve_private.zone}."
]
}
@ -339,7 +339,7 @@ resource "gandi_livedns_record" "jakehowardtech_immich" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve_private.href}."
"${gandi_livedns_record.sys_domain_pve_private.name}.${gandi_livedns_record.sys_domain_pve_private.zone}."
]
}
@ -349,7 +349,7 @@ resource "gandi_livedns_record" "jakehowardtech_photos" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}

View file

@ -8,7 +8,7 @@ resource "gandi_livedns_record" "theorangeonenet_git" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -18,7 +18,7 @@ resource "gandi_livedns_record" "theorangeonenet_whoami" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -28,7 +28,7 @@ resource "gandi_livedns_record" "theorangeonenet_whoami_cdn" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -38,7 +38,7 @@ resource "gandi_livedns_record" "theorangeonenet_whoami_private" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -56,7 +56,7 @@ resource "gandi_livedns_record" "theorangeonenet_mx" {
resource "gandi_livedns_record" "theorangeonenet_spf" {
zone = data.gandi_livedns_domain.theorangeonenet.id
name = "@"
type = "TXT"
type = "SPF"
ttl = 3600
values = [
"\"v=spf1 include:spf.messagingengine.com -all\""
@ -107,8 +107,8 @@ resource "gandi_livedns_record" "theorangeonenet_dmarc_report" {
for_each = toset([
data.gandi_livedns_domain.theorangeonenet.name,
data.gandi_livedns_domain.jakehowardtech.name,
gandi_livedns_record.theorangeonenet_mailgun_spf.href,
gandi_livedns_record.jakehowardtech_mailgun_spf.href,
"${gandi_livedns_record.theorangeonenet_mailgun_spf.name}.${gandi_livedns_record.theorangeonenet_mailgun_spf.zone}",
"${gandi_livedns_record.jakehowardtech_mailgun_spf.name}.${gandi_livedns_record.jakehowardtech_mailgun_spf.zone}"
])
zone = data.gandi_livedns_domain.theorangeonenet.id
@ -116,7 +116,7 @@ resource "gandi_livedns_record" "theorangeonenet_dmarc_report" {
type = "TXT"
ttl = 3600
values = [
"v=DMARC1"
"\"v=DMARC1\""
]
}
@ -126,7 +126,7 @@ resource "gandi_livedns_record" "theorangeonenet_apex" {
type = "ALIAS"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
"${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}."
]
}
@ -136,7 +136,7 @@ resource "gandi_livedns_record" "theorangeonenet_srv_matrix" {
type = "SRV"
ttl = 3600
values = [
"10 0 8448 ${gandi_livedns_record.theorangeonenet_matrix.href}."
"10 0 8448 ${gandi_livedns_record.theorangeonenet_matrix.name}.${gandi_livedns_record.theorangeonenet_matrix.zone}."
]
}
@ -146,7 +146,7 @@ resource "gandi_livedns_record" "theorangeonenet_matrix" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -156,7 +156,7 @@ resource "gandi_livedns_record" "theorangeonenet_plausible" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
"${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}."
]
}
@ -166,7 +166,7 @@ resource "gandi_livedns_record" "theorangeonenet_plausible_bare" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
"${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}."
]
}
@ -186,7 +186,7 @@ resource "gandi_livedns_record" "theorangeonenet_bin" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -196,14 +196,14 @@ resource "gandi_livedns_record" "theorangeonenet_google_site_verification" {
type = "TXT"
ttl = 3600
values = [
"google-site-verification=IXY4iSBN_vOcM3cp_f-BgVvEI_shz1GzXuY_8dqY61o"
"\"google-site-verification=IXY4iSBN_vOcM3cp_f-BgVvEI_shz1GzXuY_8dqY61o\""
]
}
resource "gandi_livedns_record" "theorangeonenet_mailgun_spf" {
zone = data.gandi_livedns_domain.theorangeonenet.id
name = "mg"
type = "TXT"
type = "SPF"
ttl = 3600
values = [
"\"v=spf1 include:mailgun.org -all\""
@ -216,7 +216,7 @@ resource "gandi_livedns_record" "theorangeonenet_mailgun_dkim" {
type = "TXT"
ttl = 3600
values = [
"\"k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1Z/MHEzpbWm5EgMkyWb+Xkz44Xrzr4SA5i2u8M2H5yZ1PSb4DpGk3IAX+I05UWax02+WBW3CBb5wU9rH9flgxezBoCf/hiMS1Wjb9hKGIBa2jMCzpF+wa5fyqLkLoAJZF4bc/BJKyi/ET2c7+DAA/2KlWv/nv4MEjcUR4hNGLPEC9+6PhUp8z2PnUQLzPRWHpKc1oLrnROWaX3XxdDekCzwyOw7ygzZdThVevE+0CqXVOt5SUSUCnd2tjVbvblGi6DBiQY5Tl6+xLqkQHCRqks9187+EN4FdJXkjQodkFzzyiBH5cXVGiZLOhal4koEvxGirr596qM97bIXiJWArdQIDAQAB\""
"\"k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1Z/MHEzpbWm5EgMkyWb+Xkz44Xrzr4SA5i2u8M2H5yZ1PSb4DpGk3IAX+I05UWax02+WBW3CBb5wU9rH9flgxezBoCf/hiMS1\" \"Wjb9hKGIBa2jMCzpF+wa5fyqLkLoAJZF4bc/BJKyi/ET2c7+DAA/2KlWv/nv4MEjcUR4hNGLPEC9+6PhUp8z2PnUQLzPRWHpKc1oLrnROWaX3XxdDekCzwyOw7ygzZdThVevE+0CqXVOt5SUSUCnd2\" \"tjVbvblGi6DBiQY5Tl6+xLqkQHCRqks9187+EN4FdJXkjQodkFzzyiBH5cXVGiZLOhal4koEvxGirr596qM97bIXiJWArdQIDAQAB\""
]
}
@ -236,7 +236,7 @@ resource "gandi_livedns_record" "theorangeonenet_mastodon" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -246,7 +246,7 @@ resource "gandi_livedns_record" "theorangeonenet_comentario" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_walker.href}."
"${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}."
]
}
@ -256,7 +256,7 @@ resource "gandi_livedns_record" "theorangeonenet_bsky" {
type = "CNAME"
ttl = 3600
values = [
"${gandi_livedns_record.sys_domain_pve.href}."
"${gandi_livedns_record.sys_domain_pve.name}.${gandi_livedns_record.sys_domain_pve.zone}."
]
}
@ -266,7 +266,7 @@ resource "gandi_livedns_record" "theorangeonenet_atproto" {
type = "TXT"
ttl = 3600
values = [
"did=did:plc:pgyg4ih7zsqkwdon34jqkbuz"
"\"did=did:plc:pgyg4ih7zsqkwdon34jqkbuz\""
]
}

View file

@ -16,11 +16,11 @@ resource "hcloud_server" "walker" {
resource "hcloud_rdns" "walker_reverse_ipv4" {
server_id = hcloud_server.walker.id
ip_address = hcloud_server.walker.ipv4_address
dns_ptr = gandi_livedns_record.sys_domain_walker.href
dns_ptr = "${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}"
}
resource "hcloud_rdns" "walker_reverse_ipv6" {
server_id = hcloud_server.walker.id
ip_address = hcloud_server.walker.ipv6_address
dns_ptr = gandi_livedns_record.sys_domain_walker.href
dns_ptr = "${gandi_livedns_record.sys_domain_walker.name}.${gandi_livedns_record.sys_domain_walker.zone}"
}