config error

main
Ayush Mukherjee 3 years ago
parent 870dfd66fd
commit 588bb14180

@ -72,21 +72,21 @@ if [ $consultype == "client" ]
then
cat >/etc/consul.d/consul.hcl <<EOF
datacenter = "dc1"
data_dir = "/opt/consul"
client_addr = $bind_ip
retry_join = ["$server_ip"]
datacenter = "dc1"
data_dir = "/opt/consul"
client_addr = $bind_ip
retry_join = ["$server_ip"]
EOF
chmod 640 /etc/consul.d/consul.hcl
else
cat >/etc/consul.d/server.hcl <<EOF
datacenter = "dc1"
data_dir = "/opt/consul"
bind_addr = $bind_ip
server = true
bootstrap_expect = 1
datacenter = "dc1"
data_dir = "/opt/consul"
bind_addr = $bind_ip
server = true
bootstrap_expect = 1
EOF
chmod 640 /etc/consul.d/server.hcl

Loading…
Cancel
Save