diskimage-builder/elements/mysql/first-boot.d/defaults

16 lines
489 B
Plaintext
Raw Normal View History

2012-11-13 00:49:27 +00:00
set -e
MYSQL_PASS=${MYSQL_PASS:-password}
# HOST_IP
# Find the interface used for the default route
HOST_IP_IFACE=${HOST_IP_IFACE:-$(ip route | sed -n '/^default/{ s/.*dev \(\w\+\)\s\+.*/\1/; p; }')}
# Search for an IP unless an explicit is set by ``HOST_IP`` environment variable
HOST_IP=`LC_ALL=C ip -f inet addr show ${HOST_IP_IFACE} | awk '/inet/ {split($2,parts,"/"); print parts[1]}'`
# XXX: get all these from metadata service eventually
IB_BUF_POOL=100M
IB_LOG_FILE_SIZE=10M