vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on Patroni). Automating with Ansible.
https://postgresql-cluster.org
MIT License
1.48k stars 394 forks source link

How to use the tool to setup PG HA without internet? #669

Open dashng opened 3 months ago

dashng commented 3 months ago

Hi, Is it possible to setup HA without internet? May I downloaded all dependencies and install manually then call the script to install HA cluster?

vitabaks commented 3 months ago

Hi @dashng

For environments where there is no direct Internet access from servers, they can use a proxy server.

Or use the (more complex) offline installation method - installation_method: file https://github.com/vitabaks/postgresql_cluster/blob/master/vars/Debian.yml#L145

dashng commented 3 months ago

Hi @vitabaks, thanks for your comments. I will try the offline mode on RHEL9. By the way, does it possible to have only 2 nodes, master and slavor as the minimal size of the cluster?

vitabaks commented 3 months ago

Yes, provided that you use a dedicated DCS cluster (etcd or consul) consisting of 3 or more servers.

vitabaks commented 3 months ago

I will try the offline mode on RHEL9.

Feel free to suggest a PR with improvement, as offline installation is the most rarely used mode.

dashng commented 3 months ago

Sure, we will try and update here.