18 lines
395 B
Bash
Executable File
18 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
ospassword=$(snapctl get ospassword)
|
|
extgateway=$(snapctl get extgateway)
|
|
extcidr=$(snapctl get extcidr)
|
|
dns=$(snapctl get dns)
|
|
|
|
if [ -z "$ospassword" -o -z "$extgateway" -o -z "$dns" -o -z "$extcidr"]; then
|
|
echo "Missing required config value."
|
|
snapctl get microstack
|
|
exit 1
|
|
fi
|
|
|
|
snap-openstack setup # Write out templates
|
|
|
|
source $SNAP_COMMON/etc/microstack.rc
|