Add the firewall rules for ejabberd
Includes the missing 5223 port in the andromeda_firewall recipe too
This commit is contained in:
parent
b44a226753
commit
ad23530653
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user