X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tools%2Fdeploy_site.sh;h=e9583986284f862f305ad9f94b4549bdf8bc2566;hb=refs%2Fchanges%2F26%2F526%2F1;hp=2db8214c57b8550dffff0d2c2b62cb8691b90c39;hpb=8ca1343f22312d9711b92fed95ad52655842451a;p=yaml_builds.git diff --git a/tools/deploy_site.sh b/tools/deploy_site.sh index 2db8214..e958398 100755 --- a/tools/deploy_site.sh +++ b/tools/deploy_site.sh @@ -1,6 +1,6 @@ #!/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. # @@ -17,6 +17,11 @@ 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= @@ -67,17 +72,23 @@ getactions(){ 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