mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2025-06-29 02:53:07 +00:00
add pending restart feature and bump postgresql default version to 15.4
This commit is contained in:
@ -104,15 +104,15 @@ bootstrap:
|
||||
|
||||
pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
|
||||
{% if patroni_ssl|bool %}
|
||||
{% for host in groups.patroni %}
|
||||
{% for host in groups[patroni_play_group] %}
|
||||
- hostssl all all {{ hostvars[host]['ansible_host'] }}/32 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for host in groups.patroni %}
|
||||
{% for host in groups[patroni_play_group] %}
|
||||
- host all all {{ hostvars[host]['ansible_host'] }}/32 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% for host in groups.patroni %}
|
||||
{% for host in groups[patroni_play_group] %}
|
||||
- host replication {{ patroni_replication_username }} {{ hostvars[host]['ansible_host'] }}/32 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
{% endfor %}
|
||||
- host all all 127.0.0.1/32 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
@ -150,9 +150,9 @@ postgresql:
|
||||
# password: rewind_password
|
||||
parameters:
|
||||
unix_socket_directories: {{ patroni_postgresql_unix_socket_dir }}
|
||||
{% if patroni_postgresql_stats_temp_directory_path is defined and patroni_postgresql_stats_temp_directory_path != 'none' %}
|
||||
stats_temp_directory: {{ patroni_postgresql_stats_temp_directory_path }}
|
||||
{% endif %}
|
||||
#{% if patroni_postgresql_stats_temp_directory_path is defined and patroni_postgresql_stats_temp_directory_path != 'none' %}
|
||||
# stats_temp_directory: {{ patroni_postgresql_stats_temp_directory_path }}
|
||||
#{% endif %}
|
||||
{% if patroni_ssl|bool %}
|
||||
ssl: on
|
||||
ssl_cert_file: {{ patroni_ssl_path }}/{{ patroni_self_signed_cert_name }}.crt
|
||||
|
Reference in New Issue
Block a user