Merge branch 'prometheus_postgres_exporter' of https://gitea.auro.re/Aurore/ansible into prometheus_postgres_exporter
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
pz2891 2021-04-12 11:10:31 +02:00
commit fd5ad8d5ac
2 changed files with 3 additions and 14 deletions

View file

@ -1,19 +1,7 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
# TYPE DATABASE USER ADDRESS METHOD # TYPE DATABASE USER ADDRESS METHOD
local all postgres peer map=map_local
# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database superuser can access the database using some other method.
# Noninteractive access to all databases is required during automatic
# maintenance (custom daily cronjobs, replication, and similar tasks).
#
# Database administrative login by Unix domain socket
local all postgres peer map=map_root
# "local" is for Unix domain socket connections only
local all all peer
{% for host in postgresql_hosts %} {% for host in postgresql_hosts %}
host "{{ host.database }}" "{{ host.user }}" {{ host.net }} {{ host.method }} host "{{ host.database }}" "{{ host.user }}" {{ host.net }} {{ host.method }}
{% endfor %} {% endfor %}

View file

@ -1,4 +1,5 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
# MAPNAME SYSTEM-USERNAME PG-USERNAME # MAPNAME SYSTEM-USERNAME PG-USERNAME
map_root root postgress map_local root postgres
map_local postgres postgres