Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Krish Moodbidri
Terraform Openstack
Commits
2a6d5306
Commit
2a6d5306
authored
Jul 16, 2019
by
Ishan Patel
Browse files
spelling-error-in-varable and compute image count.
parent
f64f3298
Changes
2
Hide whitespace changes
Inline
Side-by-side
main.tf
View file @
2a6d5306
...
...
@@ -132,11 +132,12 @@ resource "openstack_compute_floatingip_associate_v2" "ood" {
# creates compute node
resource
"openstack_compute_instance_v2"
"c0"
{
depends_on
=
[
openstack_networking_subnet_v2
.
internal_subnet
]
name
=
"c
0
"
name
=
"c
${
count
.
index
}
"
image_name
=
var
.
image_compute
flavor_name
=
var
.
flavor
key_pair
=
openstack_compute_keypair_v2
.
keypair
.
name
security_groups
=
[
"default"
]
count
=
2
# defines the networks of the instance
network
{
...
...
vars.tf
View file @
2a6d5306
...
...
@@ -42,7 +42,7 @@ variable "image_ood" {
}
variable
"image_compute"
{
defult
=
"CentOS-7-x86_64-GenericCloud-1905"
def
a
ult
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"keypair-name"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment