This role installs and configures Barman to do backup and replication of postgres servers
Upstream server should be configured to send WAL archives to this server. This can be done with the following:
wal_level = 'archive'
archive_mode = on
archive_command = 'rsync -ap --bwlimit=1000 %p {{barman_user}}@{{this host}}:{{barman_home}}/{{name}}/%f'
The barman server should have pip and postgres installed.
See defaults/main.yml
None
- hosts: postgres-master.prod.example.com
roles:
- role: modcloth.barman
barman_upstreams:
- name: "postgres-master"
hostname: "postgres-master.prod.example.com"
MIT
ModCloth Inc.