Update firewall_rule resource
Updated cookbook
This commit is contained in:
parent
0c98e1c51a
commit
255ff036c3
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
include_recipe 'timezone-ii'
|
include_recipe 'timezone-ii'
|
||||||
|
|
||||||
node.override['omnibus_updater']['version'] = '12.6.0'
|
node.override['omnibus_updater']['version'] = '12.7.2'
|
||||||
node.override['omnibus_updater']['kill_chef_on_upgrade'] = false
|
node.override['omnibus_updater']['kill_chef_on_upgrade'] = false
|
||||||
include_recipe 'omnibus_updater'
|
include_recipe 'omnibus_updater'
|
||||||
|
|
||||||
|
@ -8,18 +8,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# enable default firewall
|
# enable default firewall
|
||||||
firewall 'ufw' do
|
firewall 'default'
|
||||||
action :enable
|
|
||||||
end
|
|
||||||
|
|
||||||
firewall_rule 'ssh' do
|
firewall_rule 'ssh' do
|
||||||
port 22
|
port 22
|
||||||
protocol :tcp
|
protocol :tcp
|
||||||
action :allow
|
command :allow
|
||||||
end
|
end
|
||||||
|
|
||||||
firewall_rule 'mosh' do
|
firewall_rule 'mosh' do
|
||||||
port 60000..61000
|
port 60000..61000
|
||||||
protocol :udp
|
protocol :udp
|
||||||
action :allow
|
command :allow
|
||||||
end
|
end
|
||||||
|
@ -28,5 +28,5 @@ include_recipe 'nginx'
|
|||||||
firewall_rule 'http/https' do
|
firewall_rule 'http/https' do
|
||||||
port [80, 443]
|
port [80, 443]
|
||||||
protocol :tcp
|
protocol :tcp
|
||||||
action :allow
|
command :allow
|
||||||
end
|
end
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
firewall_rule 'sockethub' do
|
firewall_rule 'sockethub' do
|
||||||
port node['sockethub']['external_port'].to_i
|
port node['sockethub']['external_port'].to_i
|
||||||
protocol :tcp
|
protocol :tcp
|
||||||
action :allow
|
command :allow
|
||||||
end
|
end
|
||||||
|
|
||||||
include_recipe 'kosmos-nginx'
|
include_recipe 'kosmos-nginx'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user