#!/bin/bash
##############################################################################
-# Copyright © 2018 AT&T Intellectual Property. All rights reserved. #
+# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. #
set -x
+TIMESTAMP=$(date +"%Y%m%d%H%M")
+LOGFILE=/var/log/deploy_site_$TIMESTAMP.log
+echo "logging to $LOGFILE"
+exec 1> >(tee -a $LOGFILE)
+exec 2>&1
# Regional Server specific variables
KEYSTONE_IMAGE=
sleep 5
}
-#clean_configdocs
-#create_configdocs
-#commit_configdocs
+sleep 900
+clean_configdocs
+create_configdocs
+commit_configdocs
renderedconfigdocs
-#deploy_site
-getactions
+deploy_site
+#getactions
#update_site
-##
-#"Look at.. for progress"
-#'MaaS GUI -> http://{{yaml.genesis.host}}:30001/MAAS/#/nodes'
-#'Airflow GUI -> http://{{yaml.genesis.host}}:30004/admin/taskinstance/'
+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/"
+
+exec 2>&-
+exec 1>&-
+exit 0