chore(ops/glesys): prepare DNS setup for whitby decomissioning

Reduces the whitby record TTLs everywhere, and sets up the scaffolding for
adding nevsky/bugry records.

This relates to b/433.

Change-Id: I31b5503fa4fcf5463c989f4cf47a3d403d34c684
Reviewed-on: https://cl.tvl.fyi/c/depot/+/13066
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2025-02-01 21:59:53 +03:00 committed by tazjin
parent 1d54b05445
commit 324e050ee6
3 changed files with 50 additions and 0 deletions

View file

@ -87,9 +87,30 @@ resource "glesys_dnsdomain_record" "tvl_fyi_whitby_services" {
type = "CNAME"
data = "whitby.tvl.fyi."
host = each.key
ttl = 60 # TODO
for_each = toset(local.whitby_services)
}
# Explicit records for all services running on nevsky
resource "glesys_dnsdomain_record" "tvl_fyi_nevsky_services" {
domain = glesys_dnsdomain.tvl_fyi.id
type = "CNAME"
data = "nevsky.tvl.fyi."
host = each.key
ttl = 600 # TODO
for_each = toset(local.nevsky_services)
}
# Explicit records for all services running on bugry
resource "glesys_dnsdomain_record" "tvl_fyi_bugry_services" {
domain = glesys_dnsdomain.tvl_fyi.id
type = "CNAME"
data = "bugry.tvl.fyi."
host = each.key
ttl = 600 # TODO
for_each = toset(local.bugry_services)
}
resource "glesys_dnsdomain_record" "tvl_fyi_net_CNAME" {
domain = glesys_dnsdomain.tvl_fyi.id
type = "CNAME"

View file

@ -79,10 +79,31 @@ resource "glesys_dnsdomain_record" "tvl_su_whitby_services" {
domain = glesys_dnsdomain.tvl_su.id
type = "CNAME"
data = "whitby.tvl.su."
ttl = 60
host = each.key
for_each = toset(local.whitby_services)
}
# Explicit records for all services running on nevsky
resource "glesys_dnsdomain_record" "tvl_su_nevsky_services" {
domain = glesys_dnsdomain.tvl_su.id
type = "CNAME"
data = "nevsky.tvl.su."
host = each.key
ttl = 600
for_each = toset(local.nevsky_services)
}
# Explicit records for all services running on bugry
resource "glesys_dnsdomain_record" "tvl_su_bugry_services" {
domain = glesys_dnsdomain.tvl_su.id
type = "CNAME"
data = "bugry.tvl.su."
host = each.key
ttl = 600
for_each = toset(local.bugry_services)
}
# historical tvixbolt.tvl.su record, redirects to bolt.tvix.dev
resource "glesys_dnsdomain_record" "tvix_su_tvixbolt_CNAME" {
domain = glesys_dnsdomain.tvl_su.id

View file

@ -107,4 +107,12 @@ locals {
"status",
"todo",
]
# Hostnames of all public services on nevsky
nevsky_services = [
]
# Hostnames of all public services on bugry
bugry_services = [
]
}