talas-group/04_INFRA_DEPLOIEMENT/Ansible/roles/postgres/templates/pg_hba.conf
senke 66471934af Initial commit: Talas Group project management & documentation
Knowledge base of ~80+ markdown files across 14 domains (00-13),
Logseq graph, hardware design files (KiCAD), infrastructure configs,
and talas-wiki static site.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 20:10:41 +02:00

20 lines
622 B
Text

# {{ ansible_managed }}
# Database administrative login by Unix domain socket
local all postgres peer
# Unix domain socket for other users
local all all {% if pg_local_auth_method is defined %}{{ pg_local_auth_method }}{% elif pg_md5 %}md5{% else %}scram-sha-256{% endif %}
# localhost
host all all 127.0.0.1/32 {{ 'md5' if pg_md5 else 'scram-sha-256' }}
host all all ::1/128 {{ 'md5' if pg_md5 else 'scram-sha-256' }}
{% if pg_hba_config is defined %}
# other accesses
{% for item in pg_hba_config %}
{{ item.type }} {{ item.database }} {{ item.user }} {{ item.address }} {{ item.method }}
{% endfor %}
{% endif %}