mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
fix(dev-db/etcd): listen on 0.0.0.0 on non-ec2 types
This change makes it possible to access etcd from inside a docker container.
This commit is contained in:
parent
544ed7ac50
commit
e66eaaba2f
@ -2,7 +2,7 @@
|
||||
|
||||
VIRT=$(coreos-detect-virt)
|
||||
STATE=/var/lib/etcd
|
||||
DEFAULT_ARGS="-d $STATE -f"
|
||||
DEFAULT_ARGS="-d $STATE -f -cl 0.0.0.0"
|
||||
|
||||
if [ "${VIRT}" != "ec2" ]; then
|
||||
echo "Detected environment \"${VIRT}\", just starting solo master..."
|
||||
@ -16,7 +16,7 @@ BOOTSTRAP="/var/run/etcd/bootstrap.config"
|
||||
|
||||
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1
|
||||
|
||||
CLUSTER_ARGS="-n $MY_IP -c $MY_IP:4001 -cl 0.0.0.0 -s $MY_IP:7001 -sl 0.0.0.0"
|
||||
CLUSTER_ARGS="-n $MY_IP -c $MY_IP:4001 -s $MY_IP:7001 -sl 0.0.0.0"
|
||||
|
||||
# strip blank lines
|
||||
IPS=$(grep -v $MY_IP $BOOTSTRAP|grep -v '^\n$' |sed 's/$/:7001/'|tr '\n' ','|sed 's/^,//'|sed 's/,$//')
|
||||
|
Loading…
Reference in New Issue
Block a user