mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2025-06-29 02:53:07 +00:00
fix backup/restore and update vars for patroni rest
This commit is contained in:
@ -48,6 +48,9 @@ patroni_dcs_type: "consul"
|
||||
|
||||
## WAL-G backup and restore options
|
||||
patroni_wal_g_install: false
|
||||
patroni_wal_g_backup_enable: false
|
||||
patroni_wal_g_backup_permanent_enable: false
|
||||
patroni_wal_g_backup_retention_enable: false
|
||||
patroni_wal_g_restore_from_backup: false
|
||||
patroni_wal_g_pitr: ""
|
||||
patroni_wal_g_restore_backup_name: "LATEST"
|
||||
@ -79,7 +82,8 @@ patroni_synchronous_mode: false # or 'true' for enable synchronous database rep
|
||||
patroni_synchronous_mode_strict: false # if 'true' then block all client writes to the master, when a synchronous replica is not available
|
||||
patroni_synchronous_node_count: 2 # number of synchronous standby databases
|
||||
|
||||
patroni_postgresql_port: "5432"
|
||||
patroni_postgresql_listen_address: "0.0.0.0"
|
||||
patroni_postgresql_listen_port: "5432"
|
||||
patroni_postgresql_encoding: "UTF8" # for bootstrap only (initdb)
|
||||
patroni_postgresql_locale: "en_US.UTF-8" # for bootstrap only (initdb)
|
||||
patroni_postgresql_data_checksums: true # for bootstrap only (initdb)
|
||||
@ -115,8 +119,8 @@ patroni_postgresql_dynamic_parameters: {}
|
||||
patroni_postgresql_backup_parameters:
|
||||
postgresql:
|
||||
parameters:
|
||||
archive_command: "{{ patroni_postgresql_archive_command if patroni_wal_g_backup_enable else 'cd .' }}"
|
||||
restore_command: "{{ patroni_postgresql_restore_command if patroni_wal_g_backup_enable else 'cd .' }}"
|
||||
archive_command: "{{ patroni_postgresql_archive_command if patroni_wal_g_install else 'cd .' }}"
|
||||
restore_command: "{{ patroni_postgresql_restore_command if (patroni_wal_g_install or patroni_wal_g_restore_from_backup) else 'cd .' }}"
|
||||
|
||||
# postgresql parameters to bootstrap dcs (are parameters for example)
|
||||
patroni_postgresql_max_connections: "1000"
|
||||
|
Reference in New Issue
Block a user