Commit 2a6d5306 authored by Ishan Patel's avatar Ishan Patel
Browse files

spelling-error-in-varable and compute image count.

parent f64f3298
......@@ -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 = "c0"
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 {
......
......@@ -42,7 +42,7 @@ variable "image_ood" {
}
variable "image_compute" {
defult = "CentOS-7-x86_64-GenericCloud-1905"
default = "CentOS-7-x86_64-GenericCloud-1905"
}
variable "keypair-name" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment