Set-OPS-Public/roles/client_metrique/templates/setops-node-exporter-cert-sync.path.j2
Daniel Allaire e648009b87 Zéro-confiance : flux Métriques chiffré (node_exporter TLS + scrape https)
node_exporter sert en HTTPS via le cert step-ca (--web.config.file +
cert-sync owned prometheus, motif .path). Prometheus scrape en scheme https
+ tls_config (ca=root_ca), vérifie contre l'IP en SAN. Vars :
client_metrique_tls_actif, serveur_prometheus_metriques_tls.

Prouvé : node_exporter HTTPS 200 (vérif root_ca), HTTP rejeté (400),
4 cibles Prometheus UP en https sans erreur.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 21:04:40 -04:00

10 lines
288 B
Django/Jinja

# Gere par Set-OPS (role client_metrique). Ne pas editer a la main.
[Unit]
Description=Set-OPS — surveille le certificat step_ca de node_exporter
[Path]
PathChanged={{ client_metrique_tls_source_cert }}
Unit=setops-node-exporter-cert-sync.service
[Install]
WantedBy=multi-user.target