You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ -f"/native/usr/sbin/mdata-get" ];then
DATACENTER_NAME=$(/native/usr/sbin/mdata-get sdc:datacenter_name)fi
sed -i "s/DATACENTER_NAME/${DATACENTER_NAME:-dc1}/" /etc/consul/consul.json
The text was updated successfully, but these errors were encountered:
Consul's has built-in support for operation in multiple data centers. These data centers can be named.
The data center name can be set in the
consul.json
with the addition of a"datacenter": "<name>"
key, *or with the addition of a-datacenter
command line argument.The Triton data center name can be found using
mdata-get
:The name can be injected in the config file at
preStart
using a mechanism similar to how the advertise IP is set:The text was updated successfully, but these errors were encountered: