Skip to content

Commit

Permalink
Merge pull request #395 from legal90/remove-firewall
Browse files Browse the repository at this point in the history
Remove firewall dependency
  • Loading branch information
legal90 authored Jan 18, 2017
2 parents 36c1f8a + f8fb12d commit 8e56c2f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
8 changes: 0 additions & 8 deletions attributes/firewall.rb

This file was deleted.

1 change: 0 additions & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
depends 'build-essential'
depends 'nssm'
depends 'golang'
depends 'firewall', '~> 2.0'
depends 'poise', '~> 2.2'
depends 'poise-archive', '~> 1.3'
depends 'poise-service', '~> 1.4'
Expand Down
21 changes: 0 additions & 21 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@
#
node.default['nssm']['install_location'] = '%WINDIR%'

if node['firewall']['allow_consul']
include_recipe 'firewall::default'

# Don't open ports that we've disabled
ports = node['consul']['config']['ports'].select { |_name, port| port != -1 }

firewall_rule 'consul' do
protocol :tcp
port ports.values
action :create
command :allow
end

firewall_rule 'consul-udp' do
protocol :udp
port ports.values_at('serf_lan', 'serf_wan', 'dns')
action :create
command :allow
end
end

service_name = node['consul']['service_name']
poise_service_user node['consul']['service_user'] do
group node['consul']['service_group']
Expand Down

0 comments on commit 8e56c2f

Please sign in to comment.