ansible/roles/postgresql_server/templates/postgresql/pg_hba.conf.j2

20 lines
793 B
Text
Raw Normal View History

2021-03-10 15:59:21 +01:00
{{ ansible_managed | comment }}
2021-03-10 12:01:32 +01:00
2021-03-10 15:59:21 +01:00
# TYPE DATABASE USER ADDRESS METHOD
2021-03-10 12:01:32 +01:00
# 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
2021-03-14 23:45:36 +01:00
local all postgres peer map=map_root
2021-03-10 12:01:32 +01:00
# "local" is for Unix domain socket connections only
local all all peer
2021-03-10 15:59:21 +01:00
{% for host in postgresql_hosts %}
host "{{ host.database }}" "{{ host.user }}" {{ host.net }} {{ host.method }}
2021-03-10 12:01:32 +01:00
{% endfor %}