Add a firewall rule to allow PostgreSQL clients to connect #269
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user