Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dylan W Wheeler
hpc-factory
Commits
cee1df9d
Commit
cee1df9d
authored
10 months ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
ci: Add timestamps in user_data
parent
93bedce7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
with
4 additions
and
0 deletions
.gitlab-ci.yml
+
4
−
0
View file @
cee1df9d
...
@@ -266,6 +266,7 @@ test_ood_image:
...
@@ -266,6 +266,7 @@ test_ood_image:
-
|
-
|
cat > user_data.txt << OEOF
cat > user_data.txt << OEOF
#!/bin/bash
#!/bin/bash
echo "Starting user_data: $(date)"
cat > /etc/resolv.conf << EOF
cat > /etc/resolv.conf << EOF
search openstack.internal cm.cluster rc.uab.edu ib.cluster drac.cluster eth.cluster ib-hdr.cluster
search openstack.internal cm.cluster rc.uab.edu ib.cluster drac.cluster eth.cluster ib-hdr.cluster
nameserver 172.20.0.25
nameserver 172.20.0.25
...
@@ -273,8 +274,11 @@ test_ood_image:
...
@@ -273,8 +274,11 @@ test_ood_image:
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
mkdir -p /run/shibboleth
mkdir -p /run/shibboleth
chown shibd:shibd /run/shibboleth
chown shibd:shibd /run/shibboleth
echo "Installing s3cmd: $(date)"
pip3 install s3cmd
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/
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
OEOF
-
>
-
>
export NEW_INSTANCE_ID=$(openstack server create
export NEW_INSTANCE_ID=$(openstack server create
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment