Fix the firewall rules and move the password env variable #167

Merged
greg merged 2 commits from bugfix/160-cookbook_fixes into master 2020-05-16 08:53:30 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 31dc14e88c - Show all commits

View File

@@ -62,11 +62,11 @@ postgresql_replicas.each do |replica|
unless node.chef_environment == "development" unless node.chef_environment == "development"
include_recipe "firewall" include_recipe "firewall"
firewall_rule "postgresql" do firewall_rule "postgresql replica #{replica[:hostname]}" do
port 5432 port 5432
protocol :tcp protocol :tcp
command :allow command :allow
destination replica[:ipaddress] source replica[:ipaddress]
end end
end end
end end

View File

@@ -72,11 +72,11 @@ systemctl start #{postgresql_service}
unless node.chef_environment == "development" unless node.chef_environment == "development"
include_recipe "firewall" include_recipe "firewall"
firewall_rule "postgresql" do firewall_rule "postgresql primary #{primary[:hostname]}" do
port 5432 port 5432
protocol :tcp protocol :tcp
command :allow command :allow
destination primary[:ipaddress] source primary[:ipaddress]
end end
end end
end end