Skip to content
Snippets Groups Projects
Commit 2a6d5306 authored by Ishan Patel's avatar Ishan Patel
Browse files

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

parent f64f3298
No related branches found
No related tags found
1 merge request!20Compute-node and cleanup with ohpc and ood build
...@@ -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 = "c0" 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 {
......
...@@ -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" default = "CentOS-7-x86_64-GenericCloud-1905"
} }
variable "keypair-name" { variable "keypair-name" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment