From 5ea7c63f71f3b66c766f1fc0d2df40a706bd51f8 Mon Sep 17 00:00:00 2001 From: Chewbaccalakis Date: Tue, 22 Sep 2026 09:59:53 +0000 Subject: [PATCH] Migrate from oswaldtheotter.lan to lan.oswaldtheotter.net Moves the search domain onto a real delegated subdomain and points DNS at Technitium's new address on the atlashorizon VLAN (192.168.7.2) instead of 1.1.1.1 / its 192.168.0.x address. The S3 state backend endpoint follows the same rename. Drops the manual .lan records and the bookstack Caddy proxy along with the old zone: those hosts are served under the new domain now, and leaving them would have recreated the retired zone on the next apply. Co-Authored-By: Claude Opus 5 --- backend.tf | 2 +- terraform.tfvars | 23 ++++------------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/backend.tf b/backend.tf index fcaa700..7e48cc4 100644 --- a/backend.tf +++ b/backend.tf @@ -10,7 +10,7 @@ terraform { key = "infra/terraform.tfstate" region = "garage" - endpoint = "http://s3.oswaldtheotter.lan:30188" + endpoint = "http://s3.lan.oswaldtheotter.net:30188" use_path_style = true skip_credentials_validation = true diff --git a/terraform.tfvars b/terraform.tfvars index d170314..070af1a 100644 --- a/terraform.tfvars +++ b/terraform.tfvars @@ -20,10 +20,10 @@ network_subnets = { atlashorizon = "192.168.7.0/24" } -ansible_user = "ansible" -search_domain = "oswaldtheotter.lan" -dns_nameservers = "1.1.1.1" -technitium_host = "http://192.168.0.2:5380" +ansible_user = "ansible" +search_domain = "lan.oswaldtheotter.net" +dns_nameservers = "192.168.7.2" +technitium_host = "http://192.168.7.2:5380" # ── DNS (Technitium) ──────────────────────────────────────────────────────────── # Every declared node automatically gets an A record in the search_domain zone @@ -41,17 +41,6 @@ dns_records = [ # { zone = "lan.oswaldtheotter.net", name = "router", type = "A", value = "192.168.0.1" }, # { zone = "lan.oswaldtheotter.net", name = "nas", type = "CNAME", value = "dev.lan.oswaldtheotter.net" }, # { zone = "lan.oswaldtheotter.net", name = "@", type = "MX", value = "mail.lan.oswaldtheotter.net", priority = 10 }, - { zone = "oswaldtheotter.lan", name = "omada", type = "A", value = "192.168.0.110" }, - { zone = "oswaldtheotter.lan", name = "portanas", type = "A", value = "192.168.7.4" }, - { zone = "oswaldtheotter.lan", name = "proxmox", type = "A", value = "192.168.7.240" }, - { zone = "oswaldtheotter.lan", name = "duck", type = "A", value = "192.168.7.240" }, - { zone = "oswaldtheotter.lan", name = "goose", type = "A", value = "192.168.7.241" }, - { zone = "oswaldtheotter.lan", name = "nas", type = "CNAME", value = "portanas.oswaldtheotter.lan" }, - { zone = "oswaldtheotter.lan", name = "s3", type = "CNAME", value="portanas.oswaldtheotter.lan"}, - { zone = "oswaldtheotter.lan", name = "hass", type = "A", value="192.168.0.70"}, - { zone = "oswaldtheotter.lan", name = "homeassistant", type = "CNAME", value="hass.oswaldtheotter.lan"}, - { zone = "oswaldtheotter.lan", name = "bookstack", type = "A", value="192.168.0.5"}, - { zone = "oswaldtheotter.lan", name = "code", type = "A", value="192.168.0.5"}, ] @@ -81,10 +70,6 @@ caddy_proxies = { # upstreams = ["192.168.0.202:80"] # protocol = "https" # } - bookstack = { - host = "bookstack.oswaldtheotter.lan" - upstreams = ["192.168.0.4:30214"] - } code = { host = "code.oswaldtheotter.lan" upstreams = ["192.168.0.200:8080"]