infrastructure/terraform/sys_domains.tf
Jake Howard 07c53709c9
All checks were successful
/ terraform (push) Successful in 38s
/ ansible (push) Successful in 1m29s
Migrate theorangeone.net to Gandi
2024-09-14 21:24:12 +01:00

59 lines
1.2 KiB
HCL

resource "gandi_livedns_record" "sys_domain_casey" {
zone = gandi_livedns_domain.theorangeonenet.id
name = "casey.sys"
type = "A"
ttl = 3600
values = [
linode_instance.casey.ip_address
]
}
resource "gandi_livedns_record" "sys_domain_casey_v6" {
zone = gandi_livedns_domain.theorangeonenet.id
name = "casey.sys"
type = "AAAA"
ttl = 3600
values = [
split("/", linode_instance.casey.ipv6)[0]
]
}
resource "gandi_livedns_record" "sys_domain_walker" {
zone = gandi_livedns_domain.theorangeonenet.id
name = "walker.sys"
type = "A"
ttl = 3600
values = [
hcloud_server.walker.ipv4_address
]
}
resource "gandi_livedns_record" "sys_domain_walker_v6" {
zone = gandi_livedns_domain.theorangeonenet.id
name = "walker.sys"
type = "AAAA"
ttl = 3600
values = [
hcloud_server.walker.ipv6_address
]
}
resource "gandi_livedns_record" "sys_domain_pve" {
zone = gandi_livedns_domain.theorangeonenet.id
name = "pve.sys"
type = "A"
ttl = 3600
values = [
linode_instance.casey.ip_address
]
}
resource "gandi_livedns_record" "sys_domain_pve_private" {
zone = gandi_livedns_domain.theorangeonenet.id
name = "pve-private.sys"
type = "AAAA"
ttl = 3600
values = [
local.private_ipv6_marker
]
}