ansible-collection-prometheus/roles/postgres_exporter/templates/postgres_exporter.yml.j2
Oleg Klyuchkin 06490d7c8b
feat: Add postgres_exporter role (#291)
* feat: Add postgres_exporter role

---------

Signed-off-by: anviar <oleg.kluchkin+github@gmail.com>
2024-02-22 14:44:11 +01:00

15 lines
391 B
Django/Jinja

{{ 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 %}