REGION_NAME=$SITE
DEPLOY_SCRIPT=$AIRSHIP_TREASUREMAP/${SITE}_bundle/deploy_site.sh
+ UPDATE_SCRIPT=$AIRSHIP_TREASUREMAP/${SITE}_bundle/update_software.sh
IPTABLES_SCRIPT=$AIRSHIP_TREASUREMAP/${SITE}_bundle/update_iptables.sh
cp $YAML_BUILDS/tools/deploy_site.sh $AIRSHIP_TREASUREMAP/${SITE}_bundle
sed -i -e "s|MAAS_URL=|MAAS_URL=${MAAS_URL}|g" $DEPLOY_SCRIPT
sed -i -e "s|AIRFLOW_URL=|AIRFLOW_URL=${AIRFLOW_URL}|g" $DEPLOY_SCRIPT
+ cp $YAML_BUILDS/tools/update_software.sh $AIRSHIP_TREASUREMAP/${SITE}_bundle
+ sed -i -e "s|OS_AUTH_URL=|OS_AUTH_URL=\"${AUTH_URL}\"|g" $UPDATE_SCRIPT
+ sed -i -e "s/OS_PASSWORD=/OS_PASSWORD=$SHIPYARD_PASSWORD/g" $UPDATE_SCRIPT
+ sed -i -e "s/REGION_NAME=/REGION_NAME=$REGION_NAME/g" $UPDATE_SCRIPT
+
cp $YAML_BUILDS/tools/update_iptables.sh $AIRSHIP_TREASUREMAP/${SITE}_bundle
sed -i -e "s,HOST_INTERFACE=,HOST_INTERFACE=$HOST_INTERFACE,g" $IPTABLES_SCRIPT
sed -i -e "s,PXE_INTERFACE=,PXE_INTERFACE=$PXE_INTERFACE,g" $IPTABLES_SCRIPT
cp $YAML_BUILDS/tools/cleanup.sh $AIRSHIP_TREASUREMAP/${SITE}_bundle
+
+ cp $YAML_BUILDS/tools/openrc $AIRSHIP_TREASUREMAP/${SITE}_bundle
)
(
cp /tmp/promenade-bundle-$SITE.tar .
tar -xmf promenade-bundle-$SITE.tar
mv configs/promenade-bundle/deploy_site.sh .
+ mv configs/promenade-bundle/update_software.sh .
+ mv configs/promenade-bundle/openrc .
EOF
echo "# Waiting for BIOS updates to finish on master and worker nodes"
#!/bin/bash
+##############################################################################
+# Copyright (c) 2019 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. #
+# #
+# You may obtain a copy of the License at #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+##############################################################################
set -x
TIMESTAMP=$(date +"%Y%m%d%H%M")
exec 2>&1
# Site specific variables
-export OS_AUTH_URL="http://iam-sw.vran.k2.ericsson.se:80/v3"
+export OS_AUTH_URL=
export OS_USERNAME=shipyard
-export OS_PASSWORD=password123
-REGION_NAME=MTN3
+export OS_PASSWORD=
+REGION_NAME=
tools/airship shipyard create configdocs ${REGION_NAME} --directory=/target/configs/promenade
tools/airship shipyard commit configdocs
-tools/airship shipyard create action update_software
+SHIPYARD_ACTION=$(tools/airship shipyard create action update_software | awk '/update_software/ {print $2};')
tools/airship shipyard get actions
# Monitor the workflow
-#SHIPYARD_ACTION=$(tools/airship shipyard get actions | awk '/update_software/ {print $2};')
-#tools/airship shipyard describe $SHIPYARD_ACTION
+tools/airship shipyard describe $SHIPYARD_ACTION