From 7d3d3b3c8f22236f2947714c6da311d0a5f88009 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 19 Jul 2022 16:57:12 +0300 Subject: refactor(ops/glesys): add explicit records pointing to whitby instead of setting a wildcard record (which causes really weird behaviour if you set your search domain to tvl.su/tvl.fyi, which I do), DNS records for services running on whitby are now set explicitly. Change-Id: Ia05399b62dad326942fe0efda30782ce153df99d Reviewed-on: https://cl.tvl.fyi/c/depot/+/5961 Tested-by: BuildkiteCI Autosubmit: tazjin Reviewed-by: tazjin --- ops/glesys/dns-tvl-su.tf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ops/glesys/dns-tvl-su.tf') diff --git a/ops/glesys/dns-tvl-su.tf b/ops/glesys/dns-tvl-su.tf index 39fd054e01..f7f68cc5f9 100644 --- a/ops/glesys/dns-tvl-su.tf +++ b/ops/glesys/dns-tvl-su.tf @@ -67,13 +67,13 @@ resource "glesys_dnsdomain_record" "tvl_su_sanduny_AAAA" { data = var.sanduny_ipv6 } -# This record is responsible for hosting ~all TVL services. Be -# mindful! -resource "glesys_dnsdomain_record" "tvl_su_wildcard" { - domain = glesys_dnsdomain.tvl_su.id - host = "*" - type = "CNAME" - data = "whitby.tvl.su." +# Explicit records for all services running on whitby +resource "glesys_dnsdomain_record" "tvl_su_whitby_services" { + domain = glesys_dnsdomain.tvl_su.id + type = "CNAME" + data = "whitby.tvl.su." + host = each.key + for_each = toset(local.whitby_services) } resource "glesys_dnsdomain_record" "tvl_su_TXT_google_site" { -- cgit 1.4.1