add pending restart feature and bump postgresql default version to 15.4

This commit is contained in:
ace
2023-08-11 12:56:00 +03:00
parent 00856ecbd3
commit 43c8d3baa4
4 changed files with 58 additions and 9 deletions

View File

@ -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