https://github.com/netways/ansible-role-patroni
:elephant: Ansible Role for Patroni
https://github.com/netways/ansible-role-patroni
Last synced: 12 days ago
JSON representation
:elephant: Ansible Role for Patroni
- Host: GitHub
- URL: https://github.com/netways/ansible-role-patroni
- Owner: NETWAYS
- License: mit
- Created: 2022-10-17T11:31:21.000Z (over 2 years ago)
- Default Branch: netways
- Last Pushed: 2023-12-06T09:33:15.000Z (over 1 year ago)
- Last Synced: 2025-03-06T04:23:06.015Z (4 months ago)
- Language: Jinja
- Homepage:
- Size: 368 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role for Patroni
[](https://github.com/NETWAYS/ansible-role-patroni/actions/workflows/ci.yml)
An Ansible role which installs and configures [Patroni](https://github.com/zalando/patroni/) - HA solution for PostgreSQL.
**This branch is managed by NETWAYS.**
## Requirements
This role requires root privileges, so tell ansible to use `become: true` in any [convenient way](http://docs.ansible.com/ansible/latest/become.html) for you.
## Role Variables
Coming soon.
## Dependencies
There are no dependencies for the role, but Patroni itself needs a DCS (Etcd, Consul, ZooKeeper or Exhibitor) to be installed and configured properly and it's your responsibility to make it up and running before using this role.
Currently, it is supposed that a DCS is prepared. Otherwise, you can try one of the following roles (just uncomment respective section [here](https://github.com/kostiantyn-nemchenko/ansible-role-patroni/blob/master/meta/main.yml#L28) and set `patroni_dcs_exists` variable to false):* [**andrewrothstein.etcd-cluster**](https://github.com/andrewrothstein/ansible-etcd-cluster)
* [**brianshumate.consul**](https://github.com/brianshumate/ansible-consul)
* [**AnsibleShipyard.ansible-zookeeper**](https://github.com/AnsibleShipyard/ansible-zookeeper)## Example Playbook
- hosts: postgresql-servers
become: yes
roles:
- kostiantyn-nemchenko.patroni## License
MIT
## Author Information
Kostiantyn Nemchenko