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