From 48702191fe4524c60ab7498689a1ecf30d3f388c Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 10 Jul 2022 14:35:04 +0900 Subject: [PATCH] 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' ``` --- cookbooks/consul/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/consul/setup.rb b/cookbooks/consul/setup.rb index 2edc097..8df65c2 100644 --- 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'