infrastructure/terraform/sys_domains.tf
Jake Howard 0b65498330
All checks were successful
/ terraform (push) Successful in 1m15s
/ ansible (push) Successful in 3m14s
Add v6 for reverse domains
2023-04-23 13:56:44 +01:00

47 lines
1.2 KiB
HCL

resource "cloudflare_record" "sys_domain_casey" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "casey.sys"
value = linode_instance.casey.ip_address
type = "A"
ttl = 1
}
resource "cloudflare_record" "sys_domain_walker" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "walker.sys"
value = vultr_instance.walker.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "sys_domain_grimes" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "grimes.sys"
value = vultr_instance.grimes.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "sys_domain_casey_v6" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "casey.sys"
value = split("/", linode_instance.casey.ipv6)[0]
type = "AAAA"
ttl = 1
}
resource "cloudflare_record" "sys_domain_walker_v6" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "walker.sys"
value = vultr_instance.walker.v6_main_ip
type = "AAAA"
ttl = 1
}
resource "cloudflare_record" "sys_domain_grimes_v6" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "grimes.sys"
value = vultr_instance.grimes.v6_main_ip
type = "AAAA"
ttl = 1
}