infrastructure/terraform/0rng.one.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

23 lines
491 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 = [
gandi_livedns_record.sys_domain_pve.href
]
}
resource "gandi_livedns_record" "orngone_caa" {
zone = gandi_livedns_domain.orngone.id
name = "@"
type = "CAA"
ttl = 3600
values = [
"0 issue \"letsencrypt.org\""
]
}