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
2
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
Ryan Randles Jones
Terraform Openstack
Commits
2a6d5306
Commit
2a6d5306
authored
6 years ago
by
Ishan Patel
Browse files
Options
Downloads
Patches
Plain Diff
spelling-error-in-varable and compute image count.
parent
f64f3298
No related branches found
No related tags found
1 merge request
!20
Compute-node and cleanup with ohpc and ood build
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.tf
+2
-1
2 additions, 1 deletion
main.tf
vars.tf
+1
-1
1 addition, 1 deletion
vars.tf
with
3 additions
and
2 deletions
main.tf
+
2
−
1
View file @
2a6d5306
...
@@ -132,11 +132,12 @@ resource "openstack_compute_floatingip_associate_v2" "ood" {
...
@@ -132,11 +132,12 @@ resource "openstack_compute_floatingip_associate_v2" "ood" {
# creates compute node
# creates compute node
resource
"openstack_compute_instance_v2"
"c0"
{
resource
"openstack_compute_instance_v2"
"c0"
{
depends_on
=
[
openstack_networking_subnet_v2
.
internal_subnet
]
depends_on
=
[
openstack_networking_subnet_v2
.
internal_subnet
]
name
=
"c
0
"
name
=
"c
${
count
.
index
}
"
image_name
=
var
.
image_compute
image_name
=
var
.
image_compute
flavor_name
=
var
.
flavor
flavor_name
=
var
.
flavor
key_pair
=
openstack_compute_keypair_v2
.
keypair
.
name
key_pair
=
openstack_compute_keypair_v2
.
keypair
.
name
security_groups
=
[
"default"
]
security_groups
=
[
"default"
]
count
=
2
# defines the networks of the instance
# defines the networks of the instance
network
{
network
{
...
...
This diff is collapsed.
Click to expand it.
vars.tf
+
1
−
1
View file @
2a6d5306
...
@@ -42,7 +42,7 @@ variable "image_ood" {
...
@@ -42,7 +42,7 @@ variable "image_ood" {
}
}
variable
"image_compute"
{
variable
"image_compute"
{
defult
=
"CentOS-7-x86_64-GenericCloud-1905"
def
a
ult
=
"CentOS-7-x86_64-GenericCloud-1905"
}
}
variable
"keypair-name"
{
variable
"keypair-name"
{
...
...
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