pez-infra/ansible/inventory/host_vars/helsinki-a.yml
Rasmus Wejlgaard 54cf0c484c Bind node_exporter to Tailscale IP on public-facing hosts
node_exporter was listening on 0.0.0.0:9100 on helsinki-a and london-a,
exposing metrics to the public internet.

Changes:
- Add node_exporter_bind_tailscale flag (default false) to opt in
- Set flag on helsinki-a and london-a host_vars
- Debian: configure ARGS in /etc/default/prometheus-node-exporter
- FreeBSD: use native node_exporter_listen_address rc.conf variable
- Add handlers to restart on config change

Prometheus already scrapes via Tailscale IPs, no scrape config changes needed.

Fixes PESO-98
2026-03-30 21:56:36 +00:00

17 lines
391 B
YAML

---
host_role: proxy
host_description: "Reverse proxy (Caddy), main traffic gateway"
host_location: "Hetzner Cloud"
caddy_config_src: "{{ playbook_dir }}/services/caddy/Caddyfile"
docker_services:
- authelia
- forgejo
- bitwarden
node_exporter_bind_tailscale: true
common_ufw_allowed_ports:
- {port: 80, proto: tcp, comment: "HTTP"}
- {port: 443, proto: tcp, comment: "HTTPS"}