export OS_USERNAME=shipyard
export OS_PASSWORD=
REGION_NAME=
+MAAS_URL=
+AIRFLOW_URL=
sleep 900
tools/airship shipyard get actions
SHIPYARD_ACTION=$(tools/airship shipyard get actions | awk '/deploy_site/ {print $2};')
-
-tools/airship shipyard describe $SHIPYARD_ACTION
+SHIPYARD_CLI="tools/airship shipyard describe $SHIPYARD_ACTION"
echo "## Airship deployment has been started..."
echo "##"
echo "## To monitor progress check:"
-echo "## MaaS GUI -> http://{{yaml.genesis.host}}:30001/MAAS/#/nodes"
-echo "## Airflow GUI -> http://{{yaml.genesis.host}}:30004/admin/taskinstance/"
+echo "## MaaS GUI -> $MAAS_URL"
+echo "## Shipyard cli-> $SHIPYARD_CLI"
+#echo "## Airflow GUI -> $AIRFLOW_URL"
+
+while ( ! $SHIPYARD_CLI | grep -qe '^Lifecycle.*Complete' && ! $SHIPYARD_CLI | grep -qe '^step.*failed'); do
+ $SHIPYARD_CLI
+ echo "## Sleeping for 10 mins"
+ sleep 600
+done
+$SHIPYARD_CLI
exec 2>&-
exec 1>&-
-exit 0
-
+$SHIPYARD_CLI | grep -qe '^step.*failed'