Update firewall_rule resource

Updated cookbook
This commit is contained in:
Greg 2016-02-19 18:11:43 +01:00
parent 0c98e1c51a
commit 255ff036c3
4 changed files with 6 additions and 8 deletions

View File

@ -9,7 +9,7 @@
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
include_recipe 'omnibus_updater'

View File

@ -8,18 +8,16 @@
#
# enable default firewall
firewall 'ufw' do
action :enable
end
firewall 'default'
firewall_rule 'ssh' do
port 22
protocol :tcp
action :allow
command :allow
end
firewall_rule 'mosh' do
port 60000..61000
protocol :udp
action :allow
command :allow
end

View File

@ -28,5 +28,5 @@ include_recipe 'nginx'
firewall_rule 'http/https' do
port [80, 443]
protocol :tcp
action :allow
command :allow
end

View File

@ -10,7 +10,7 @@
firewall_rule 'sockethub' do
port node['sockethub']['external_port'].to_i
protocol :tcp
action :allow
command :allow
end
include_recipe 'kosmos-nginx'