Commit Graph

46 Commits

Author SHA1 Message Date
bf199bd7c6 ns/resolver: add redundant stub-zone addresses
Some checks failed
Run nix flake check / flake-check (push) Failing after 1s
Configure Unbound to query both ns1 and ns2 for the home.2rjus.net
zone, in addition to local NSD. This provides redundancy during
bootstrap or if local NSD is temporarily unavailable.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-07 20:10:17 +01:00
3cccfc0487 monitoring: implement monitoring gaps coverage
Some checks failed
Run nix flake check / flake-check (push) Failing after 7m36s
Add exporters and scrape targets for services lacking monitoring:
- PostgreSQL: postgres-exporter on pgdb1
- Authelia: native telemetry metrics on auth01
- Unbound: unbound-exporter with remote-control on ns1/ns2
- NATS: HTTP monitoring endpoint on nats1
- OpenBao: telemetry config and Prometheus scrape with token auth
- Systemd: systemd-exporter on all hosts for per-service metrics

Add alert rules for postgres, auth (authelia + lldap), jellyfin,
vault (openbao), plus extend existing nats and unbound rules.

Add Terraform config for Prometheus metrics policy and token. The
token is created via vault_token resource and stored in KV, so no
manual token creation is needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 21:44:13 +01:00
0700033c0a secrets: migrate all hosts from sops to OpenBao vault
Replace sops-nix secrets with OpenBao vault secrets across all hosts.
Hardcode root password hash, add extractKey option to vault-secrets
module, update Terraform with secrets/policies for all hosts, and
create AppRole provisioning playbook.

Hosts migrated: ha1, monitoring01, ns1, ns2, http-proxy, nix-cache01
Wave 1 hosts (nats1, jelly01, pgdb1) get AppRole policies only.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 18:43:09 +01:00
83af00458b dns: remove defunct external hosts
Remove hosts that no longer respond to ping:
- kube-blue1-10 (entire k8s cluster)
- virt-mini1, mpnzb, inc2, testing
- CNAMEs: rook, git (pointed to removed kube-blue nodes)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 21:50:56 +01:00
cee1b264cd dns: auto-generate zone entries from host configurations
Replace static zone file with dynamically generated records:
- Add homelab.dns module with enable/cnames options
- Extract IPs from systemd.network configs (filters VPN interfaces)
- Use git commit timestamp as zone serial number
- Move external hosts to separate external-hosts.nix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 21:43:44 +01:00
f0525b5c74 ns: add vaulttest01 to zone
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m19s
2026-02-03 06:42:05 +01:00
42c391b355 ns: add vault cname to zone
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m7s
2026-02-03 06:00:59 +01:00
b012df9f34 ns: add vault01 host to zone
Some checks failed
Run nix flake check / flake-check (push) Failing after 15m40s
Periodic flake update / flake-update (push) Successful in 1m7s
2026-02-01 20:54:22 +01:00
a0e94430b4 nix-cache01: add actions runner
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
2025-08-21 20:56:04 +02:00
5b06a95222 Add prometheus pushgateway
Some checks failed
Run nix flake check / flake-check (push) Failing after 12m59s
2025-05-28 17:10:50 +02:00
4432f4c1d0 Add cname for pyroscope 2025-05-24 12:03:16 +02:00
cba1821f3b Add lldap to auth01 host 2025-04-01 22:23:59 +02:00
0df45877e1 Remove duplicate host from zone
Some checks failed
Run nix flake check / flake-check (push) Failing after 30m7s
Periodic flake update / flake-update (push) Successful in 1m27s
2025-02-12 22:45:44 +01:00
5b64f40412 Add media1 host
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
2025-02-12 22:44:30 +01:00
c43e2aa063 Add nats server
Some checks failed
Run nix flake check / flake-check (push) Failing after 17m6s
Periodic flake update / flake-update (push) Successful in 1m28s
2025-02-08 00:26:53 +01:00
a9eeb8ada6 Add postgres host
Some checks failed
Run nix flake check / flake-check (push) Failing after 6m3s
2025-01-25 02:28:44 +01:00
83b2a4a2e8 Add initial media1 host 2025-01-24 23:31:52 +01:00
006d0b9213 Finish nix-cache
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m3s
2025-01-24 15:48:03 +01:00
1eb100d4ba Add nix-cache01 2025-01-23 23:18:14 +01:00
79b6598d0d Add jellyfin
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m36s
Periodic flake update / flake-update (push) Successful in 1m29s
2024-12-22 04:33:00 +01:00
ee6a864723 Fix mediapc dns
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m11s
Periodic flake update / flake-update (push) Successful in 1m32s
2024-12-16 01:38:28 +01:00
1e7d8b4795 Add monitoring frontends to caddy
Some checks failed
Run nix flake check / flake-check (push) Failing after 8m32s
Periodic flake update / flake-update (push) Successful in 1m54s
2024-12-04 19:42:35 +01:00
3c3eaaa042 Add monitoring host 2024-12-01 01:51:34 +01:00
0058264fe1 Add home-assistant to proxy
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m56s
Periodic flake update / flake-update (push) Successful in 2m16s
2024-11-09 14:07:40 +01:00
d7a6e09ce3 Add ca host 2024-10-21 11:01:57 +02:00
a2db4db09e Add new cnames for proxy 2024-10-20 22:37:33 +02:00
c3e37b3661 Update zone 2024-10-20 22:19:39 +02:00
504be31412 Add http-proxy host
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m49s
2024-10-20 22:09:23 +02:00
e39e3cf0cb Add more dns servers to unbound 2024-06-27 21:19:11 +02:00
50bd8505ec Add incus servers 2024-06-27 21:10:20 +02:00
c347394ace Add nixos-test1 2024-06-02 21:50:40 +02:00
7b35d91a5e Add h1 dns 2024-05-01 19:04:12 +02:00
62a8cefe1f Add gunter A record 2024-03-18 00:21:11 +01:00
6b84c06417 Bump serial 2024-03-16 15:12:07 +01:00
7dcae7d18a Add git cname 2024-03-16 15:11:45 +01:00
2de4e6655e Add rook cname 2024-03-14 23:39:18 +01:00
03fe1e9eef Add alertmanager cname 2024-03-14 17:05:34 +01:00
b4af038b3b Add some cnames to zone 2024-03-14 16:56:55 +01:00
c6295df6d1 Fix typo in zonefile 2024-03-14 08:20:10 +01:00
263ac86d4a Update zonefile 2024-03-14 08:03:27 +01:00
a9ef72ae68 Update zonefile 2024-03-13 23:40:17 +01:00
c042dcf8e0 Add ns1 and ns2 2024-03-13 23:22:10 +01:00
e451957df3 Start changing ns stuff to home.2rjus.net 2024-03-12 19:44:41 +01:00
5b838771e3 Improve ns stuff 2024-03-11 21:26:52 +01:00
7ba862f21d Add template host 2024-03-08 20:10:50 +01:00
0ed396cd88 Initial commit 2024-03-07 23:14:44 +01:00