Skip to content

modcloth/ansible-role-modcloth-barman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modcloth Barman

This role installs and configures Barman to do backup and replication of postgres servers

Requirements

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.

Role Variables

See defaults/main.yml

Dependencies

None

Example Playbook

- hosts: postgres-master.prod.example.com
  roles:
  - role: modcloth.barman
    barman_upstreams:
      - name: "postgres-master"
        hostname: "postgres-master.prod.example.com"

License

MIT

Author Information

ModCloth Inc.