snix/ops/dns/snix-systems.tf
Florian Klink a11099fd1c feat(ops/dns): manage snix.{store,systems} in DO
Also include tvix.{store,systems}, they might still be used in some
places.

Change-Id: I90085d7488f94c8764e61e3d99d8f03459c6f9f0
Reviewed-on: https://cl.snix.dev/c/snix/+/30501
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
Autosubmit: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-05-12 14:39:47 +00:00

38 lines
911 B
HCL

# DNS configuration for snix.systems
resource "digitalocean_domain" "snix_systems" {
name = "snix.systems"
}
resource "digitalocean_record" "snix_systems_apex_v4" {
domain = digitalocean_domain.snix_systems.id
type = "A"
name = "@"
value = var.public01_ipv4
}
resource "digitalocean_record" "snix_systems_apex_v6" {
domain = digitalocean_domain.snix_systems.id
type = "AAAA"
name = "@"
value = var.public01_ipv6
}
# tvix.systems, old alias
resource "digitalocean_domain" "tvix_systems" {
name = "tvix.systems"
}
resource "digitalocean_record" "tvix_systems_apex_v4" {
domain = digitalocean_domain.tvix_systems.id
type = "A"
name = "@"
value = var.public01_ipv4
}
resource "digitalocean_record" "tvix_systems_apex_v6" {
domain = digitalocean_domain.tvix_systems.id
type = "AAAA"
name = "@"
value = var.public01_ipv6
}