mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-22 01:31:01 +01:00
Add support for tls_config in prometheus scrape configs
This commit is contained in:
parent
5086fe389f
commit
cc4692b37d
2 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
strategy: free
|
||||
roles:
|
||||
- s3lph.pki.pki_entity
|
||||
- s3lph.prometheus.prometheus_node
|
||||
|
||||
- hosts: all_nodes
|
||||
strategy: free
|
||||
|
|
|
@ -31,6 +31,14 @@
|
|||
password: {{ job.basic_auth_password }}
|
||||
{% endif -%}
|
||||
|
||||
{% if 'tls_config' in job %}
|
||||
tls_config:
|
||||
ca_file: {{ tls_config.ca_file }}
|
||||
cert_file: {{ tls_config.cert_file }}
|
||||
key_file: {{ tls_config.key_file }}
|
||||
insecure_skip_verify: {{ tls_config.key_file | default(false) }}
|
||||
{% endif -%}
|
||||
|
||||
static_configs:
|
||||
- targets:
|
||||
{% for host in groups['all'] -%}
|
||||
|
|
Loading…
Reference in a new issue