]> git.immae.eu Git - github/fretlink/ansible-postgresql-role.git/blob - templates/recovery.conf.j2
059b2348c28feac1d44c14f6101583a42431d3bc
[github/fretlink/ansible-postgresql-role.git] / templates / recovery.conf.j2
1 # This file is renamed to `recover.done` by postgres once the secondary is promoted
2 # {{ ansible_managed }}
3
4 standby_mode = 'on'
5 restore_command = '/usr/bin/barman-wal-restore --user barman --parallel 8 {{ postgres_barman_server }} {{ postgres_primary.restore_directory }} %f %p'
6 primary_conninfo = 'host={{ postgres_primary.host }} port={{ postgres_primary.port }} user={{ postgres_primary.replication_user }} password={{ postgres_primary.replication_password }} sslmode=require'
7 trigger_file = '/var/lib/postgresql/{{ postgres_version }}/{{ postgres_cluster_name }}/failover.trigger'
8 recovery_target_timeline='latest'