{"repo":"credativ/ansible-playbook-patroni-debian","free":true,"listed":false,"github":"https://github.com/credativ/ansible-playbook-patroni-debian","clone":"git clone https://github.com/credativ/ansible-playbook-patroni-debian.git","description":"Ansible playbook for a Debian-based Patroni HA PostgreSQL cluster","language":null,"stars":20,"topics":["postgresql","patroni","ansible-playbook","debian"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"Ansible Playbook for Patroni on Debian ====================================== This Ansible playbook allows to deploy a Patroni cluster using the patroni packages provided by Debian and/or PostgreSQL's apt.postgresql.org repository. Those packages have been integrated into Debian's postgresql-common framework and will look very similar to a regular stand-alone PostgreSQL install on Debian. This is done by using pg createconfig patroni creating setting the manual flag in the /etc/postgresql/$PG VERSION/$CLUSTER NAME/start.conf config file. That will cause the postgres init script/systemd unit not to start that cluster automatically. Instead patroni will take care to start and manage that cluster. For production use it should be hardened (e.g. using Ansible Vault and encrypted communication between the DCS server and the Patroni clients). The default topology consists of one node ( master ) acting as the DCS (Distributed Consensus Store) server, and three PostgreSQL/Patroni nodes ( pg1 , pg2 and pg3 ), see inventory . DCS Server ---------- Patroni requires a DCS for leader election and as configuration store. Supported DCS server are Etcd, Consul and Zookeeper. If e.g. an Etcd cluster is already available, then it can be configured either by editing templates/dcs.yml or (if that suffices) by setting the dcs server Ansible variable to its IP address. Usage ----- Assuming password-less SSH access to the four nodes is configured, the playbook can be run as follows: Supported Versio","default_branch":null,"files":null,"tree":[],"storefront":"/r/credativ","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/credativ/ansible-playbook-patroni-debian/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}