3
# Set up vars common to all the configuration scripts
5
export OVERCLOUD="./novarc"
6
export UNDERCLOUD="$HOME/novarc"
8
# Set serverstack defaults, if not already set.
9
[[ -z "$GATEWAY" ]] && export GATEWAY="10.5.0.1"
10
[[ -z "$CIDR_EXT" ]] && export CIDR_EXT="10.5.0.0/16"
11
[[ -z "$FIP_RANGE" ]] && export FIP_RANGE="10.5.150.0:10.5.200.254"
12
[[ -z "$NAMESERVER" ]] && export NAMESERVER="10.245.160.2"
13
[[ -z "$CIDR_PRIV" ]] && export CIDR_PRIV="192.168.21.0/24"
14
[[ -z "$SWIFT_IP" ]] && export SWIFT_IP="10.245.161.162"
16
# handy function to test if an array contains a value $1 in ${2[@]}
17
# returns $? as 1 if the element does exist
20
for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done