Add the firewall rules for ejabberd

Includes the missing 5223 port in the andromeda_firewall recipe too
This commit is contained in:
Greg Karékinian 2019-05-13 17:08:21 +02:00
parent b44a226753
commit ad23530653
3 changed files with 10 additions and 1 deletions

View File

@ -27,7 +27,7 @@
# Temporary extra rules for Andromeda # Temporary extra rules for Andromeda
firewall_rule 'ejabberd' do firewall_rule 'ejabberd' do
port [5222, 5269, 5280, 5443] port [5222, 5223, 5269, 5280, 5443]
protocol :tcp protocol :tcp
command :allow command :allow
end end

View File

@ -22,3 +22,4 @@ chef_version '>= 12.14' if respond_to?(:chef_version)
depends "kosmos-postgresql" depends "kosmos-postgresql"
depends "kosmos-base" depends "kosmos-base"
depends "backup" depends "backup"
depends "firewall"

View File

@ -105,3 +105,11 @@ end
service "ejabberd" do service "ejabberd" do
action [:enable, :start] action [:enable, :start]
end end
unless node.chef_environment == "development"
firewall_rule 'ejabberd' do
port [5222, 5223, 5269, 5280, 5443]
protocol :tcp
command :allow
end
end