Ayush Mukherjee 3 years ago
parent ca2092d090
commit 6cbbe59d98

@ -74,7 +74,7 @@ then
cat >/etc/consul.d/consul.hcl <<EOF
datacenter = "dc1"
data_dir = "/opt/consul"
client_addr = "$bind_ip"
bind_addr = "$bind_ip"
retry_join = ["$server_ip"]
EOF
chmod 640 /etc/consul.d/consul.hcl
@ -87,6 +87,9 @@ data_dir = "/opt/consul"
bind_addr = "$bind_ip"
server = true
bootstrap_expect = 1
ui_config {
enabled = true
}
EOF
chmod 640 /etc/consul.d/server.hcl

Loading…
Cancel
Save