mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-26 05:40:18 +00:00
16 lines
391 B
Text
16 lines
391 B
Text
|
{{ ansible_managed | comment }}
|
||
|
|
||
|
{% if postgres_exporter_uri is defined %}
|
||
|
auth_modules:
|
||
|
foo1: # Set this to any name you want
|
||
|
type: userpass
|
||
|
userpass:
|
||
|
username: {{ postgres_exporter_username }}
|
||
|
password: {{ postgres_exporter_password }}
|
||
|
options:
|
||
|
# options become key=value parameters of the DSN
|
||
|
sslmode: disable
|
||
|
{% else %}
|
||
|
auth_modules: {}
|
||
|
{% endif %}
|