diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 10:50:16 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 11:20:26 -0700 |
commit | d0d07c491f157bef0174cc05ee3c308fe9f72c9b (patch) | |
tree | f0bdf886cac991a10422b53590bb92e02a41f31b | |
parent | c3e9305bce9fd1aaf165779fb46570c683750e6f (diff) | |
download | infra-d0d07c491f157bef0174cc05ee3c308fe9f72c9b.tar.gz infra-d0d07c491f157bef0174cc05ee3c308fe9f72c9b.zip |
Temporary patch to handle lucina.cloud internal services
-rwxr-xr-x | create.py | 2 | ||||
-rw-r--r-- | group_vars/labdns.yml | 26 | ||||
-rw-r--r-- | playbooks/roles/labdns/templates/volumes/unbound/a-records.conf | 2 | ||||
-rw-r--r-- | playbooks/roles/labdns/templates/volumes/unbound/forward-records.conf | 7 |
4 files changed, 19 insertions, 18 deletions
@@ -94,7 +94,7 @@ class HomelabDns: return False new_lines = ( lines[0:internal_services + 1] - + [f" - {dns_prefix}\n"] + + [f" - {dns_prefix}.{{{{ domain }}}}\n"] + lines[internal_services + 1:] ) if not new_lines: diff --git a/group_vars/labdns.yml b/group_vars/labdns.yml index 5ec022c..70fd718 100644 --- a/group_vars/labdns.yml +++ b/group_vars/labdns.yml @@ -3,16 +3,16 @@ labdns_base: "{{ swarm_base }}/labdns" internal_services: - - test - - bin - - ci - - idm - - kanban - - loadbalancer - - notes - - passwd - - pihole - - proxy - - src - - swarm - - traefik + - test.{{ domain }} + - bin.{{ domain }} + - ci.{{ domain }} + - idm.{{ domain }} + - kanban.{{ domain }} + - loadbalancer.{{ domain }} + - notes.{{ domain }} + - passwd.{{ domain }} + - pihole.{{ domain }} + - proxy.{{ domain }} + - src.{{ domain }} + - swarm.{{ domain }} + - traefik.{{ domain }} diff --git a/playbooks/roles/labdns/templates/volumes/unbound/a-records.conf b/playbooks/roles/labdns/templates/volumes/unbound/a-records.conf index 9462aab..6248b0c 100644 --- a/playbooks/roles/labdns/templates/volumes/unbound/a-records.conf +++ b/playbooks/roles/labdns/templates/volumes/unbound/a-records.conf @@ -1,4 +1,4 @@ # {{ domain }} {% for service in internal_services %} -local-data: "{{ service }}.{{ domain }}. A {{ loadbalancer_ip }}" +local-data: "{{ service }}. A {{ loadbalancer_ip }}" {% endfor %} diff --git a/playbooks/roles/labdns/templates/volumes/unbound/forward-records.conf b/playbooks/roles/labdns/templates/volumes/unbound/forward-records.conf index 19af327..ae977e7 100644 --- a/playbooks/roles/labdns/templates/volumes/unbound/forward-records.conf +++ b/playbooks/roles/labdns/templates/volumes/unbound/forward-records.conf @@ -1,5 +1,6 @@ forward-zone: name: "." - forward-addr: 1.1.1.1@853#cloudflare-dns.com - forward-addr: 1.0.0.1@853#cloudflare-dns.com - forward-tls-upstream: yes + forward-addr: 10.128.0.44@53 +# forward-addr: 1.1.1.1@853#cloudflare-dns.com +# forward-addr: 1.0.0.1@853#cloudflare-dns.com +# forward-tls-upstream: yes |