stormatics / pg_cirrus

Set up 3-Node highly available PostgreSQL cluster
https://stormatics.tech/
GNU General Public License v3.0
57 stars 5 forks source link

R&D to figure out a way to automate prerequisite steps #56

Open salman-bokhari opened 1 year ago

salman-bokhari commented 1 year ago

Since prerequisite steps are a little time consuming, we're trying to figure out a way to automate the prerequisite steps Prerequisite steps we're aiming to automate are:

salman-bokhari commented 1 year ago

One of the solutions we opt for is to create a python script that creates ssh-keypair and then creates passwordless access from pgpool machine to primary and standby nodes. This same script could install all dependencies such as git, ansible, python3 on remote servers. This same script could create postgres user and give it passwordless sudo access.

There would be two limitations to this approach: