sebastianwebber / patroni-setup

ansible roles to deploy patroni

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patroni SET UP

This repo is inspired by this post and it consists in the set up of 3 "VMs with ssh" started by vagrant, and the ansible setup(that runs on docker too) to install patroni.

Requirements

To run this repo is necessary to install:

Tested on M1 and intel macbooks.

Usage

To create the vms, run:

make create-machines

Once the were created, test the ansible connection:

make ansible-ping

If the connection working, setup patroni in the nodes:

make ansible-setup

checking if patroni is working

connect in any of the nodes, like below:

ssh -F vagrant-ssh.cfg db-node-1

In the node run:

sudo su - postgres -c "patronictl -c /etc/patroni.yaml topology"

cleanup

To remove the vagrant machines, run:

make clean

About

ansible roles to deploy patroni


Languages

Language:Dockerfile 51.3%Language:Jinja 34.8%Language:Shell 7.5%Language:Makefile 6.4%