Add a firewall rule to allow clients to connect

Previously it was not an issue because services that connected to the
PostgreSQL primary were also on the same server as a standby server.
This commit is contained in:
Greg Karékinian 2020-12-18 17:53:28 +01:00
parent 4be542670b
commit c700f98976

View File

@ -64,6 +64,13 @@ postgresql_clients.each do |client|
access_method "md5"
notifies :reload, "service[#{postgresql_service}]", :immediately
end
firewall_rule "postgresql #{hostname}" do
port 5432
protocol :tcp
command :allow
source ip
end
end
postgresql_replicas.each do |replica|