feat(id.tjo.space): changes

This commit is contained in:
Tine 2025-03-06 21:41:09 +01:00
parent 936f3d0c4c
commit 0bc4bdc5a0
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
2 changed files with 11 additions and 10 deletions
id.tjo.space

View file

@ -48,4 +48,4 @@ cat <<EOF >/etc/caddy/env
DOMAIN_NAME=${DOMAIN_NAME}
EOF
systemctl enable --now caddy
systemctl start caddy

View file

@ -65,12 +65,13 @@ resource "dnsimple_zone_record" "a" {
ttl = 300
}
resource "dnsimple_zone_record" "aaaa" {
for_each = local.nodes
zone_name = "tjo.space"
name = trimsuffix(each.value.meta.domain, ".tjo.space")
value = hcloud_server.main[each.key].ipv6_address
type = "AAAA"
ttl = 300
}
# Podman is PITA!
#resource "dnsimple_zone_record" "aaaa" {
# for_each = local.nodes
#
# zone_name = "tjo.space"
# name = trimsuffix(each.value.meta.domain, ".tjo.space")
# value = hcloud_server.main[each.key].ipv6_address
# type = "AAAA"
# ttl = 300
#}