Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
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
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
Chirag Chandrahas Shetty
Terraform Openstack
Commits
a2964f1e
Commit
a2964f1e
authored
5 years ago
by
Chirag Chandrahas Shetty
Browse files
Options
Downloads
Patches
Plain Diff
Added code to have seperate instance flavor for OHPC, OOD and Compute nodes
parent
985954f4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.tf
+3
-3
3 additions, 3 deletions
main.tf
vars.tf
+3
-1
3 additions, 1 deletion
vars.tf
with
6 additions
and
4 deletions
main.tf
+
3
−
3
View file @
a2964f1e
...
@@ -61,7 +61,7 @@ module "create-ohpc-instance" {
...
@@ -61,7 +61,7 @@ module "create-ohpc-instance" {
source
=
"./ohpc-instance"
source
=
"./ohpc-instance"
ohpc_instance_name
=
var
.
ohpc_instance_name
ohpc_instance_name
=
var
.
ohpc_instance_name
image_ohpc
=
var
.
image_ohpc
image_ohpc
=
var
.
image_ohpc
flavor
=
var
.
flavor
flavor
=
var
.
ohpc_
flavor
key_pair
=
"
${module
.
import-keypair
.
keypair_name
}
"
key_pair
=
"
${module
.
import-keypair
.
keypair_name
}
"
external_network
=
var
.
external_network
external_network
=
var
.
external_network
internal_network
=
var
.
internal_network
internal_network
=
var
.
internal_network
...
@@ -79,7 +79,7 @@ module "create-ood-instance" {
...
@@ -79,7 +79,7 @@ module "create-ood-instance" {
source
=
"./ood-instance"
source
=
"./ood-instance"
ood_instance_name
=
var
.
ood_instance_name
ood_instance_name
=
var
.
ood_instance_name
image_ood
=
var
.
image_ood
image_ood
=
var
.
image_ood
flavor
=
var
.
flavor
flavor
=
var
.
ood_
flavor
key_pair
=
"
${module
.
import-keypair
.
keypair_name
}
"
key_pair
=
"
${module
.
import-keypair
.
keypair_name
}
"
internal_network
=
var
.
internal_network
internal_network
=
var
.
internal_network
internal_ip
=
var
.
ood_private_ip
internal_ip
=
var
.
ood_private_ip
...
@@ -96,7 +96,7 @@ module "nodes" {
...
@@ -96,7 +96,7 @@ module "nodes" {
internal_subnet_id
=
"
${module
.
cluster-network
.
internal_subnet_id
}
"
internal_subnet_id
=
"
${module
.
cluster-network
.
internal_subnet_id
}
"
source
=
"./nodes"
source
=
"./nodes"
image_compute
=
var
.
image_compute
image_compute
=
var
.
image_compute
flavor
=
var
.
flavor
flavor
=
var
.
compute_
flavor
key_pair
=
"
${module
.
import-keypair
.
keypair_name
}
"
key_pair
=
"
${module
.
import-keypair
.
keypair_name
}
"
compute_node_count
=
var
.
compute_node_count
compute_node_count
=
var
.
compute_node_count
internal_network
=
var
.
internal_network
internal_network
=
var
.
internal_network
...
...
This diff is collapsed.
Click to expand it.
vars.tf
+
3
−
1
View file @
a2964f1e
...
@@ -19,7 +19,9 @@ variable "ood_instance_name" { default = "ood"}
...
@@ -19,7 +19,9 @@ variable "ood_instance_name" { default = "ood"}
variable
"image_ohpc"
{
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"image_ohpc"
{
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"image_ood"
{
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
"ood_private_ip"
{
default
=
"10.1.1.11"
}
variable
"flavor"
{
default
=
"m1.medium"
}
variable
"ood_flavor"
{
default
=
"m1.medium"
}
variable
"compute_flavor"
{
default
=
"m1.medium"
}
variable
"ohpc_flavor"
{
default
=
"m1.xlarge"
}
variable
"internal_network"
{
default
=
"clusternet"
}
variable
"internal_network"
{
default
=
"clusternet"
}
variable
"external_network"
{
default
=
"dmznet"
}
variable
"external_network"
{
default
=
"dmznet"
}
variable
"host_prefix"
{
default
=
"164.111.161.%s"
}
variable
"host_prefix"
{
default
=
"164.111.161.%s"
}
...
...
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