infrastructure/terraform/0rng.one.tf
Jake Howard e03cc40bf3
All checks were successful
/ terraform (push) Successful in 32s
/ ansible (push) Successful in 1m41s
Update DNS records to alias sys records
2023-12-31 21:10:55 +00:00

23 lines
492 B
HCL

resource "gandi_livedns_domain" "orngone" {
name = "0rng.one"
}
resource "gandi_livedns_record" "orngone_apex" {
zone = gandi_livedns_domain.orngone.id
name = "@"
type = "ALIAS" # Gandi doesn't support CNAME-flattening
ttl = 3600
values = [
cloudflare_record.sys_domain_pve.hostname
]
}
resource "gandi_livedns_record" "orngone_caa" {
zone = gandi_livedns_domain.orngone.id
name = "@"
type = "CAA"
ttl = 3600
values = [
"0 issue \"letsencrypt.org\""
]
}