Skip to content
Snippets Groups Projects
Commit cee1df9d authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

ci: Add timestamps in user_data

parent 93bedce7
No related branches found
No related tags found
1 merge request!88Add timestamps in user date
......@@ -266,6 +266,7 @@ test_ood_image:
- |
cat > user_data.txt << OEOF
#!/bin/bash
echo "Starting user_data: $(date)"
cat > /etc/resolv.conf << EOF
search openstack.internal cm.cluster rc.uab.edu ib.cluster drac.cluster eth.cluster ib-hdr.cluster
nameserver 172.20.0.25
......@@ -273,8 +274,11 @@ test_ood_image:
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
mkdir -p /run/shibboleth
chown shibd:shibd /run/shibboleth
echo "Installing s3cmd: $(date)"
pip3 install s3cmd
echo "Downloading hostkey via s3cmd: $(date)"
s3cmd get --force -r --access_key=$AWS_ACCESS_KEY_ID --secret_key=$AWS_SECRET_ACCESS_KEY --host=$AWS_HOST --host-bucket=$AWS_HOST s3://knightly-key/ /etc/ssh/
echo "Download completed: $(date)"
OEOF
- >
export NEW_INSTANCE_ID=$(openstack server create
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment