-
-
Notifications
You must be signed in to change notification settings - Fork 537
Open
Labels
feature requestNew functionality requestNew functionality request
Description
Problem
At this moment pg_hba.conf is configured only with IPv4 address of each node. As a result, connections may fail, if replicas connect using the domain name (expected to be supported #1228).
Description
When autobase configures pg_hba.conf, it should also allow the IPv6 address of the hostname.
Importance
nice to have
Proposed implementation
Define bind_address_v6 for each host in inventory, and then update pg_hba.conf.j2 to look like
{% for host in groups['postgres_cluster'] %}
hostssl replication {{ patroni_replication_username }} {{ hostvars[host]['patroni_bind_address'] | default(hostvars[host]['bind_address'], true) }}/32 {{ postgresql_password_encryption_algorithm }}
{% if hostvars[host]['bind_address_v6'] %}
hostssl replication {{ patroni_replication_username }} {{ hostvars[host]['patroni_bind_address_v6'] | default(hostvars[host]['bind_address_v6'], true) }}/128 {{ postgresql_password_encryption_algorithm }}
{% endif %}
{% endfor %}
Metadata
Metadata
Assignees
Labels
feature requestNew functionality requestNew functionality request