mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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:
parent
885b3387d8
commit
3ab300285e
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue