Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
John-Paul Robinson
Terraform Openstack
Commits
6bfa8a54
Commit
6bfa8a54
authored
5 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Specify private ip on ood
parent
f02cc123
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.tf
+1
-0
1 addition, 0 deletions
main.tf
ood-instance/main.tf
+2
-0
2 additions, 0 deletions
ood-instance/main.tf
vars.tf
+1
-0
1 addition, 0 deletions
vars.tf
with
4 additions
and
0 deletions
main.tf
+
1
−
0
View file @
6bfa8a54
...
...
@@ -82,6 +82,7 @@ module "create-ood-instance" {
flavor
=
var
.
flavor
key_pair
=
"
${module
.
import-keypair
.
keypair_name
}
"
internal_network
=
var
.
internal_network
internal_ip
=
var
.
ood_private_ip
external_network
=
var
.
external_network
floating_ip_ood
=
"
${module
.
floating-ip-address
.
ood_address
}
"
host_prefix
=
var
.
host_prefix
...
...
This diff is collapsed.
Click to expand it.
ood-instance/main.tf
+
2
−
0
View file @
6bfa8a54
...
...
@@ -9,6 +9,7 @@ variable "flavor" {}
variable
"key_pair"
{
type
=
"string"
}
variable
"internal_network"
{}
variable
"internal_ip"
{}
variable
"external_network"
{}
# is created in floating-ip module and called in root module
...
...
@@ -34,6 +35,7 @@ resource "openstack_compute_instance_v2" "ood" {
}
network
{
name
=
var
.
internal_network
fixed_ip_v4
=
var
.
internal_ip
}
}
...
...
This diff is collapsed.
Click to expand it.
vars.tf
+
1
−
0
View file @
6bfa8a54
...
...
@@ -18,6 +18,7 @@ variable "ohpc_private_ip" {default = "10.1.1.10"}
variable
"ood_instance_name"
{
default
=
"ood"
}
variable
"image_ohpc"
{
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"image_ood"
{
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"ood_private_ip"
{
default
=
"10.1.1.11"
}
variable
"flavor"
{
default
=
"m1.medium"
}
variable
"internal_network"
{
default
=
"clusternet"
}
variable
"external_network"
{
default
=
"dmznet"
}
...
...
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