fix(dev-db/etcd): set name in bootstrap

by default set the name of the etcd machine to the `${HOSTNAME}`
This commit is contained in:
Brandon Philips 2013-12-23 23:22:19 -08:00
parent 969ec91d6e
commit 58a6bf6d7a

View File

@ -2,7 +2,7 @@
VIRT=$(coreos-detect-virt)
STATE=/var/lib/etcd
DEFAULT_ARGS="-d $STATE -f -cl 0.0.0.0"
DEFAULT_ARGS="-d $STATE -f -cl 0.0.0.0 -n ${HOSTNAME}"
if [ "${VIRT}" != "ec2" ]; then
echo "Detected environment \"${VIRT}\", just starting solo master..."