Commit ff4b0791 authored by HgO's avatar HgO
Browse files

give full access to replicator user from cluster members

parent 9fada871
Pipeline #814 passed with stage
in 2 minutes and 57 seconds
......@@ -72,11 +72,13 @@ postgresql:
{% endfor %}
{% for member in etcd_members %}
{% if 'ipv6' in member %}
- host replication replicator {{ member.ipv6 }}/128 md5
- host all rewind {{ member.ipv6 }}/128 md5
- host replication {{ postgresql_patroni_replication_username }} {{ member.ipv6 }}/128 md5
- host all {{ postgresql_patroni_replication_username }} {{ member.ipv6 }}/128 md5
- host all {{ postgresql_patroni_rewind_username }} {{ member.ipv6 }}/128 md5
{% elif 'ipv4' in member %}
- host replication replicator {{ member.ipv4 }}/32 md5
- host all rewind {{ member.ipv4 }}/32 md5
- host replication {{ postgresql_patroni_replication_username }} {{ member.ipv4 }}/32 md5
- host all {{ postgresql_patroni_replication_username }} {{ member.ipv4 }}/32 md5
- host all {{ postgresql_patroni_rewind_username }} {{ member.ipv4 }}/32 md5
{% endif %}
{% endfor %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment