unbound_exporter: Add TLS support

Currently unbound_exporter doesn't support TLS connections so proxy
connections through stunnel.
This commit is contained in:
Timo Makinen 2025-01-19 17:51:18 +00:00
parent 271eb09669
commit 964e841c1d
3 changed files with 35 additions and 17 deletions

View file

@ -1,11 +0,0 @@
---
tls_server_config:
key_file: {{ tls_private }}/{{ inventory_hostname }}.key
cert_file: {{ tls_certs }}/{{ inventory_hostname }}.crt
client_ca_file: {{ tls_certs }}/ca.crt
client_auth_type: RequireAndVerifyClientCert
client_allowed_sans:
{% for host in groups['prometheus'] %}
- {{ host }}
{% endfor %}
min_version: TLS13