Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions scripts/hyperconverged-lab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ if [ -z "${OS_CLOUD}" ]; then
export OS_CLOUD="${OS_CLOUD:-default}"
fi

# SJC3 is special...
OS_REGION=$(openstack config show -f json | jq -r '.region_name')
if [ "${OS_REGION}" = "SJC3" ]; then
DEFAULT_OS_FLAVOR="gp.0.8.16"
else
DEFAULT_OS_FLAVOR="gp.5.8.16"
fi

if [ -z "${OS_FLAVOR}" ]; then
read -rp "Enter name of the flavor to use for the instances [gp.5.8.16]: " OS_FLAVOR
export OS_FLAVOR=${OS_FLAVOR:-gp.5.8.16}
read -rp "Enter name of the flavor to use for the instances [${DEFAULT_OS_FLAVOR}]: " OS_FLAVOR
export OS_FLAVOR=${OS_FLAVOR:-${DEFAULT_OS_FLAVOR}}
fi

if ! openstack router show hyperconverged-router; then
Expand Down
Loading