Commit f64f3298 authored by Ishan Patel's avatar Ishan Patel
Browse files

added-var-for-compute-node

parent e039eca2
......@@ -133,7 +133,7 @@ resource "openstack_compute_floatingip_associate_v2" "ood" {
resource "openstack_compute_instance_v2" "c0" {
depends_on = [openstack_networking_subnet_v2.internal_subnet]
name = "c0"
image_name = var.image_ood
image_name = var.image_compute
flavor_name = var.flavor
key_pair = openstack_compute_keypair_v2.keypair.name
security_groups = ["default"]
......
......@@ -41,6 +41,10 @@ variable "image_ood" {
default = "CentOS-7-x86_64-GenericCloud-1905"
}
variable "image_compute" {
defult = "CentOS-7-x86_64-GenericCloud-1905"
}
variable "keypair-name" {
default = "os-gen-keypair"
}
......
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