Skip to content

Commit

Permalink
include firewall_rule for udp ports
Browse files Browse the repository at this point in the history
per https://consul.io/docs/agent/options.html, serf and dns are TCP and UDP
  • Loading branch information
twmb committed Oct 5, 2015
1 parent 91eff66 commit a335e8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
action :create
command :allow
end

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

poise_service_user node['consul']['service_user'] do
Expand Down

0 comments on commit a335e8a

Please sign in to comment.