mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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:
parent
684f291f41
commit
7f7806ba8e
2 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
|
||||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue