Skip to content

Commit

Permalink
[CLOUD-608] Bind client APIs to both private IPs and loopback (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
kouzant authored May 31, 2023
1 parent 43bece3 commit 89a11dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89a11dc

Please sign in to comment.