diff options
author | Paul B <paul.bonaud@capitainetrain.com> | 2018-08-31 11:49:09 +0200 |
---|---|---|
committer | Paul B <paul.bonaud@capitainetrain.com> | 2018-08-31 12:00:24 +0200 |
commit | d0bc90e08c29e881c388c6803ed9c49dff1f1776 (patch) | |
tree | e5f633a7461f3d339ef89758fc7bb3f1b91563d3 /templates/recovery.conf.j2 | |
download | ansible-postgresql-role-d0bc90e08c29e881c388c6803ed9c49dff1f1776.tar.gz ansible-postgresql-role-d0bc90e08c29e881c388c6803ed9c49dff1f1776.tar.zst ansible-postgresql-role-d0bc90e08c29e881c388c6803ed9c49dff1f1776.zip |
Initial commit open sourcing Postgresql Ansible role1.0.0
Diffstat (limited to 'templates/recovery.conf.j2')
-rw-r--r-- | templates/recovery.conf.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/recovery.conf.j2 b/templates/recovery.conf.j2 new file mode 100644 index 0000000..059b234 --- /dev/null +++ b/templates/recovery.conf.j2 | |||
@@ -0,0 +1,8 @@ | |||
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' | ||