diskimage-builder/flavours/mysql/first-boot.d/defaults
2012-11-12 16:49:27 -08:00

16 lines
489 B
Plaintext

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