Fix problem with Consul configuration on VirtualBox

Edit Consul Upstart configuration to force Consul to bind to secondary Ethernet interface. This fixes problems when using this environment with VirtualBox.
This commit is contained in:
Scott S. Lowe 2016-09-21 11:08:58 -06:00
parent 885b3387d8
commit 3ab300285e

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
end script