redhat-cop / automate-tower-ha-dr

Configure High Availability and/or Disaster Recovery on a Tower Cluster
MIT License
63 stars 38 forks source link

Ensure pg_host is always an ip address #5

Open branic opened 5 years ago

branic commented 5 years ago

pg_host needs to be an ip address, but it is possible that pg_host is defined as a hostname.

This PR ensures that an ip address is always used for checking pg_host against the ip address of the master database server.

mpetrive-rh commented 4 years ago

There are cases when pg_host can't and won't be an IP. One good example is if your database is behind a CNAME entry as is the case for increased availability solutions for PostgreSQL. There is an open issue around this, linked. We need to investigate more