Skip to content
Snippets Groups Projects
Commit 213f7c00 authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

compute node module

parent 346c574a
No related branches found
No related tags found
No related merge requests found
variable "image_compute" {default = "CentOS-7-x86_64-GenericCloud-1905"}
variable "flavor" {default = "m1.medium"}
variable "compute_node_count" {default = 2}
variable "internal_net" {default = "clusternet"}
variable "image_compute" {default = "string"}
variable "flavor" {default = "string"}
variable "compute_node_count" { }
variable "internal_net" {default = "string"}
variable "key_pair" {type = "string"}
# creates compute node
resource "openstack_compute_instance_v2" "c0" {
......@@ -9,7 +10,7 @@ resource "openstack_compute_instance_v2" "c0" {
name = "c${count.index}"
image_name = var.image_compute
flavor_name = var.flavor
key_pair = openstack_compute_keypair_v2.keypair.name
key_pair = var.key_pair
security_groups = ["default"]
count = var.compute_node_count
......
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