Fix issue with Consul configuration on VirtualBox

Modify `consul.conf` to force Consul to bind to eth1 instead of eth0. Edit `server.json` to use the correct working directory for Consul, as created by `consul.sh` during provisioning.
This commit is contained in:
Scott S. Lowe 2016-09-21 09:53:14 -06:00
parent 684f291f41
commit 7f7806ba8e
2 changed files with 3 additions and 1 deletions

View file

@ -11,9 +11,11 @@ script
fi
export GOMAXPROCS=`nproc`
BIND_ADDR=`hostname -I | cut -f2 -d' '`
exec /usr/local/bin/consul agent \
-config-dir="/etc/consul.d/server" \
-bind $BIND_ADDR \
${CONSUL_FLAGS} \
>>/var/log/consul.log 2>&1
end script

View file

@ -2,7 +2,7 @@
"bootstrap": false,
"server": true,
"datacenter": "dc1",
"data_dir": "/tmp",
"data_dir": "/var/consul",
"log_level": "INFO",
"enable_syslog": true,
"start_join": ["192.168.100.101", "192.168.100.102", "192.168.100.103"]