infrastructure/terraform/sys_domains.tf

48 lines
1.2 KiB
Terraform
Raw Normal View History

2022-01-19 08:29:56 +00:00
resource "cloudflare_record" "sys_domain_casey" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "casey.sys"
2022-01-21 21:52:21 +00:00
value = linode_instance.casey.ip_address
2022-01-19 08:29:56 +00:00
type = "A"
ttl = 1
}
resource "cloudflare_record" "sys_domain_walker" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "walker.sys"
2024-05-04 13:20:15 +01:00
value = hcloud_server.walker.ipv4_address
2022-01-19 08:29:56 +00:00
type = "A"
ttl = 1
}
2023-04-23 13:56:44 +01:00
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"
2024-05-04 13:20:15 +01:00
value = hcloud_server.walker.ipv6_address
2023-04-23 13:56:44 +01:00
type = "AAAA"
ttl = 1
}
2023-12-31 11:32:06 +00:00
resource "cloudflare_record" "sys_domain_pve" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "pve.sys"
value = linode_instance.casey.ip_address
type = "A"
2023-12-31 11:32:06 +00:00
ttl = 1
}
2024-03-23 12:55:54 +00:00
resource "cloudflare_record" "sys_domain_pve_private" {
zone_id = cloudflare_zone.theorangeonenet.id
2024-03-23 12:55:54 +00:00
name = "pve-private.sys"
value = local.private_ipv6_marker
type = "AAAA"
ttl = 1
}