The playbook runs four roles hosts-file postgres-HA keepalive pgbouncer
This role adds the hostname and the fqdn to the /etc/hosts file.
Reason to do that:
Sometimes DNS-changes are slower then the we need it to run the
ansible-scripts. The entry in the /etc/hosts file prefents other roles
aganist host not found/unknown/reachable errors.
Role readme.
Original ansible-repo.
This role installs a postgres HA-cluster. Managed is the cluster with repmgr
a tool to manage replication and failover.
Role readme. Here we install keepalive. It uses a additional IP that can be switched between hosts after a failover.
Role readme.
At last we install pgbouncer. It is a pooler to make client-connections
faster and more stable.