From 89a11dcb112e2bd30fd730777d450337e053e396 Mon Sep 17 00:00:00 2001 From: Antonis Kouzoupis Date: Wed, 31 May 2023 09:54:25 +0200 Subject: [PATCH] [CLOUD-608] Bind client APIs to both private IPs and loopback (#51) --- attributes/default.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/attributes/default.rb b/attributes/default.rb index c7a29a3c..77424b82 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -20,9 +20,7 @@ default['consul']['bind_address'] = "" # Default bind to localhost but accepts any go-sockaddr template -# For example, private IP address and localhost -# {{ GetPrivateIP }} {{ GetAllInterfaces | include "flags" "loopback" | include "type" "ipv4" | join "address" " " }} -default['consul']['client_address'] = '{{ GetAllInterfaces | include "flags" "loopback" | include "type" "ipv4" | join "address" " " }}' +default['consul']['client_address'] = '{{ GetPrivateIPs }} {{ GetAllInterfaces | include "flags" "loopback" | include "type" "ipv4" | join "address" " " }}' default['consul']['retry_join']['provider'] = node['install']['cloud'] default['consul']['retry_join']['tag_key'] = nil default['consul']['retry_join']['tag_value'] = nil