Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neutrinet
infra-ansible
Commits
ff4b0791
Commit
ff4b0791
authored
May 11, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/postgres_patroni/templates/config.yml.j2
View file @
ff4b0791
...
...
@@ -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 %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment