https://github.com/abg/warm_standby
Ansible template for setting up a Postgres 8.4 primary + warm standby
https://github.com/abg/warm_standby
Last synced: 3 months ago
JSON representation
Ansible template for setting up a Postgres 8.4 primary + warm standby
- Host: GitHub
- URL: https://github.com/abg/warm_standby
- Owner: abg
- Created: 2014-06-03T23:24:21.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-03T23:32:05.000Z (almost 11 years ago)
- Last Synced: 2025-01-02T09:23:47.475Z (5 months ago)
- Language: Shell
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Description
===========This is an ansible template to setup a Postgres 8.4 primary instance
and one or more standby instances running on RHEL/CentOS 6 using the
pgdg repo.This assumes there is some remote user with sudo access on the remote systems.
This is intended for very old 8.4 deployments to support minimal redundancy by
leveraging log shipping. For modern deployments, you probably want to look at
Postgres 9 streaming replication which is not support by this playbook.Usage
=====Update hosts in the hosts file.
```
# ansible-playbook --sudo --ask-pass --ask-sudo-pass --user=myuser -i hosts warm_standby.yml
```After this playbook runs you have a minimal Postgres setup with:
- A primary server archiving WAL to the standbys
- One or more standbys in recovery modeThe standby's recovery.conf is configured to use pg_standby and a trigger file in
/var/lib/pgsql/8.4/promote_standby.