Move 0rng.one DNS to Gandi

This commit is contained in:
Jake Howard 2023-04-23 20:26:11 +01:00
parent f14b16ec26
commit b68cb9cd96
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,35 +1,43 @@
resource "cloudflare_zone" "orngone" { resource "gandi_livedns_domain" "orngone" {
zone = "0rng.one" name = "0rng.one"
} }
resource "cloudflare_record" "orngone_git" { resource "gandi_livedns_record" "orngone_git" {
zone_id = cloudflare_zone.orngone.id zone = gandi_livedns_domain.orngone.id
name = "git" name = "git"
value = cloudflare_record.theorangeonenet_git.hostname type = "CNAME"
type = "CNAME" ttl = 3600
ttl = 1 values = [
cloudflare_record.theorangeonenet_git.hostname
]
} }
resource "cloudflare_record" "orngone_who" { resource "gandi_livedns_record" "orngone_who" {
zone_id = cloudflare_zone.orngone.id zone = gandi_livedns_domain.orngone.id
name = "who" name = "who"
value = cloudflare_record.theorangeonenet_whoami.hostname type = "CNAME"
type = "CNAME" ttl = 3600
ttl = 1 values = [
cloudflare_record.theorangeonenet_whoami.hostname
]
} }
resource "cloudflare_record" "orngone_img" { resource "gandi_livedns_record" "orngone_img" {
zone_id = cloudflare_zone.orngone.id zone = gandi_livedns_domain.orngone.id
name = "img" name = "img"
value = cloudflare_record.theorangeonenet_img.hostname type = "CNAME"
type = "CNAME" ttl = 3600
ttl = 1 values = [
cloudflare_record.theorangeonenet_img.hostname
]
} }
resource "cloudflare_record" "orngone_yourls" { resource "gandi_livedns_record" "orngone_apex" {
zone_id = cloudflare_zone.orngone.id zone = gandi_livedns_domain.orngone.id
name = "@" name = "@"
value = linode_instance.casey.ip_address type = "A"
type = "A" ttl = 3600
ttl = 1 values = [
linode_instance.casey.ip_address
]
} }