diff --git a/templates/stunnel-client.conf.j2 b/templates/stunnel-client.conf.j2 index 479a45e..136d397 100644 --- a/templates/stunnel-client.conf.j2 +++ b/templates/stunnel-client.conf.j2 @@ -1,4 +1,14 @@ +{% if ansible_distribution_release == 'stretch' %} +sslVersion = TLSv1.2 +{% else %} sslVersionMin = TLSv1.2 +{% endif %} +options = SINGLE_ECDH_USE +options = SINGLE_DH_USE + +setuid = stunnel4 +setgid = stunnel4 +pid = /var/run/stunnel4/prometheus-agent.pid {% for i in prometheus_agent.scrapers if "nodeexporter" in prometheus_agent.scrapers[i] %} ; nodeexporter