Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
6
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
rc
Terraform Openstack
Commits
b4bc023f
Commit
b4bc023f
authored
1 year ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Remove custom connection for floating ip
parent
7626fea6
Branches
feat_use_existing_router_and_network
Branches containing commit
No related tags found
2 merge requests
!6
Add CD feature to the repo
,
!1
wip: test-keypair without file
Pipeline
#8341
passed with stages
in 6 minutes and 37 seconds
Changes
2
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ohpc-instance/main.tf
+0
-7
0 additions, 7 deletions
ohpc-instance/main.tf
ood-instance/main.tf
+0
-7
0 additions, 7 deletions
ood-instance/main.tf
with
0 additions
and
14 deletions
ohpc-instance/main.tf
+
0
−
7
View file @
b4bc023f
...
@@ -61,13 +61,6 @@ resource "openstack_compute_instance_v2" "ohpc" {
...
@@ -61,13 +61,6 @@ resource "openstack_compute_instance_v2" "ohpc" {
resource
"openstack_compute_floatingip_associate_v2"
"ohpc"
{
resource
"openstack_compute_floatingip_associate_v2"
"ohpc"
{
floating_ip
=
var
.
floating_ip_ohpc
floating_ip
=
var
.
floating_ip_ohpc
instance_id
=
openstack_compute_instance_v2
.
ohpc
.
id
instance_id
=
openstack_compute_instance_v2
.
ohpc
.
id
# defines ssh connection
connection
{
host
=
format
(
var
.
host_prefix
,
element
(
split
(
"."
,
var
.
floating_ip_ohpc
),
3
,),)
user
=
var
.
ohpc_user
private_key
=
file
(
var
.
ssh_private_key
)
}
}
}
output
"id"
{
output
"id"
{
...
...
This diff is collapsed.
Click to expand it.
ood-instance/main.tf
+
0
−
7
View file @
b4bc023f
...
@@ -68,13 +68,6 @@ resource "openstack_compute_instance_v2" "ood" {
...
@@ -68,13 +68,6 @@ resource "openstack_compute_instance_v2" "ood" {
resource
"openstack_compute_floatingip_associate_v2"
"ood"
{
resource
"openstack_compute_floatingip_associate_v2"
"ood"
{
floating_ip
=
var
.
floating_ip_ood
floating_ip
=
var
.
floating_ip_ood
instance_id
=
openstack_compute_instance_v2
.
ood
.
id
instance_id
=
openstack_compute_instance_v2
.
ood
.
id
# defines ssh connection
connection
{
host
=
format
(
var
.
host-prefix
,
element
(
split
(
"."
,
var
.
floating_ip_ood
),
3
,),)
user
=
var
.
ood_user
private_key
=
file
(
var
.
ssh_private_key
)
}
}
}
...
...
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