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
2
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
Krish Moodbidri
hpc-factory
Commits
5d0ff958
Commit
5d0ff958
authored
5 months ago
by
Eesaan Atluri
Committed by
Bo-Chun Chen
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add missing code to create instance and associate FIP
parent
d9b8ad29
No related branches found
No related tags found
2 merge requests
!3
Change compute reference to login
,
!2
feat(ssh_host_keys): add role for managing SSH host keys
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-2
17 additions, 2 deletions
.gitlab-ci.yml
with
17 additions
and
2 deletions
.gitlab-ci.yml
+
17
−
2
View file @
5d0ff958
...
...
@@ -304,8 +304,23 @@ deploy_login_node:
rm -rf /tmp/${CI_PROJECT_NAME}
EOF
-
|
export cmd="openstack server create"
cmd+=" -c id -f value --image $LOGIN_IMAGE_ID"
cmd+=" --flavor $INSTANCE_FLAVOR"
cmd+=" --network $INSTANCE_NETWORK"
cmd+=" --security-group allow-ssh"
cmd+=" --user-data user_data.txt"
if [ -n "$LOGIN_PORT" ];then cmd+=" --port $LOGIN_PORT"; fi
cmd+=" --wait $LOGIN_INSTANCE_NAME"
-
export LOGIN_INSTANCE_ID=$(bash -c "$cmd")
-
|
# Associate the floating IP(s) with the SSH Proxy instance
for LOGIN_FLOATING_IP in ${LOGIN_FLOATING_IP_LIST[@]};
do
echo "Associating FLOATING_IP $LOGIN_FLOATING_IP with LOGIN_INSTANCE_ID $LOGIN_INSTANCE_ID"
openstack server add floating ip $LOGIN_INSTANCE_ID $LOGIN_FLOATING_IP
done
rules
:
-
if
:
$PIPELINE_TARGET == "deploy"
-
if
:
$PIPELINE_TARGET == "deploy"
&& $LOGIN_IMAGE_ID
when
:
always
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