Allow `Consul` gcp port to communicate.

```
--- a/cookbooks/consul/setup.rb
+++ b/cookbooks/consul/setup.rb
@@ -44,7 +44,7 @@ service 'consul' do
 end

 # iptables settings here:
-%w( 8300/tcp 8301/tcp 8301/udp 8500/tcp ).each do |port|
+%w( 8300/tcp 8301/tcp 8301/udp 8500/tcp 8502/tcp ).each do |port|
   execute "ufw allow #{port}" do
     user 'root'
```
This commit is contained in:
Kazuhiro MUSASHI 2022-07-10 14:35:04 +09:00
parent c15c2f3de8
commit 48702191fe
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ service 'consul' do
end end
# iptables settings here: # iptables settings here:
%w( 8300/tcp 8301/tcp 8301/udp 8500/tcp ).each do |port| %w( 8300/tcp 8301/tcp 8301/udp 8500/tcp 8502/tcp ).each do |port|
execute "ufw allow #{port}" do execute "ufw allow #{port}" do
user 'root' user 'root'