Add v6 for reverse domains
All checks were successful
/ terraform (push) Successful in 1m15s
/ ansible (push) Successful in 3m14s

This commit is contained in:
Jake Howard 2023-04-23 13:56:44 +01:00
parent 1fbb1ec668
commit 0b65498330
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 41 additions and 0 deletions

View file

@ -79,3 +79,8 @@ resource "linode_rdns" "casey_reverse_ipv4" {
address = linode_instance.casey.ip_address address = linode_instance.casey.ip_address
rdns = "casey.sys.theorangeone.net" rdns = "casey.sys.theorangeone.net"
} }
resource "linode_rdns" "casey_reverse_ipv6" {
address = split("/", linode_instance.casey.ipv6)[0]
rdns = "casey.sys.theorangeone.net"
}

View file

@ -21,3 +21,9 @@ resource "vultr_reverse_ipv4" "grimes_reverse_ipv4" {
ip = vultr_instance.grimes.main_ip ip = vultr_instance.grimes.main_ip
reverse = "grimes.sys.theorangeone.net" reverse = "grimes.sys.theorangeone.net"
} }
resource "vultr_reverse_ipv6" "grimes_reverse_ipv6" {
instance_id = vultr_instance.grimes.id
ip = vultr_instance.grimes.v6_main_ip
reverse = "grimes.sys.theorangeone.net"
}

View file

@ -21,3 +21,27 @@ resource "cloudflare_record" "sys_domain_grimes" {
type = "A" type = "A"
ttl = 1 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
}

View file

@ -20,3 +20,9 @@ resource "vultr_reverse_ipv4" "walker_reverse_ipv4" {
ip = vultr_instance.walker.main_ip ip = vultr_instance.walker.main_ip
reverse = "walker.sys.theorangeone.net" reverse = "walker.sys.theorangeone.net"
} }
resource "vultr_reverse_ipv6" "walker_reverse_ipv6" {
instance_id = vultr_instance.walker.id
ip = vultr_instance.walker.v6_main_ip
reverse = "walker.sys.theorangeone.net"
}