mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2025-06-29 02:53:07 +00:00
cleanup
This commit is contained in:
@ -57,12 +57,12 @@ bootstrap:
|
||||
method: {{ patroni_cluster_bootstrap_method }}
|
||||
{% if patroni_cluster_bootstrap_method == 'wal-g' %}
|
||||
wal-g:
|
||||
command: {{ wal_g_patroni_cluster_bootstrap_command }}
|
||||
command: {{ patroni_wal_g_cluster_bootstrap_command }}
|
||||
no_params: True
|
||||
recovery_conf:
|
||||
recovery_target_action: promote
|
||||
recovery_target_timeline: latest
|
||||
restore_command: {{ wal_g_pg_binary_name }} wal-fetch %f %p
|
||||
restore_command: {{ patroni_wal_g_pg_binary_name }} wal-fetch %f %p
|
||||
{% endif %}
|
||||
{% if patroni_cluster_bootstrap_method == 'pg_probackup' %}
|
||||
pg_probackup:
|
||||
@ -190,13 +190,13 @@ postgresql:
|
||||
{% endif %}
|
||||
{% if 'wal_g' in patroni_create_replica_methods %}
|
||||
wal_g:
|
||||
{% for item in wal_g %}
|
||||
{% for item in patroni_wal_g_create_replica_methods %}
|
||||
{{ item.option }}: {{ item.value }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if 'basebackup' in patroni_create_replica_methods %}
|
||||
basebackup:
|
||||
{% for item in basebackup %}
|
||||
{% for item in patroni_basebackup_create_replica_methods %}
|
||||
{{ item.option }}: '{{ item.value }}'
|
||||
{% endfor %}
|
||||
{% if patroni_postgresql_major_version is version('10', '>=') and patroni_postgresql_wal_dir is defined and patroni_postgresql_wal_dir | length > 0 %}
|
||||
@ -205,7 +205,7 @@ postgresql:
|
||||
{% endif %}
|
||||
{% if 'pg_probackup' in patroni_create_replica_methods %}
|
||||
pg_probackup:
|
||||
{% for item in pg_probackup %}
|
||||
{% for item in patroni_pg_probackup_create_replica_methods %}
|
||||
{{ item.option }}: {{ item.value }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@ -215,7 +215,7 @@ postgresql:
|
||||
max-rate: '100M'
|
||||
{% endif %}
|
||||
|
||||
{% if patroni_postgresql_restore_command is defined and patroni_postgresql_restore_command | length > 0 %}
|
||||
{% if patroni_postgresql_restore_command is defined and patroni_postgresql_restore_command | length > 0 and patroni_wal_g_install %}
|
||||
recovery_conf:
|
||||
restore_command: {{ patroni_postgresql_restore_command }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user