Skip to content
Snippets Groups Projects

wip: test-keypair without file

Closed Krish Moodbidri requested to merge feat-test-keypair into feat-deploy-xdmod-supremm
Compare and Show latest version
6 files
+ 37
69
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 1
5
# is created in internal-network module and called in root module
variable "internal_subnet_id" {type = string}
variable "image_compute" {}
variable "flavor" {}
@@ -34,7 +31,6 @@ data "openstack_images_image_v2" "compute" {
# creates compute node
resource "openstack_compute_instance_v2" "compute" {
depends_on = [var.internal_subnet_id]
name = "c${count.index}"
image_id = data.openstack_images_image_v2.compute.id
flavor_name = var.flavor
@@ -52,7 +48,7 @@ resource "openstack_compute_instance_v2" "compute" {
# defines the networks of the instance
network {
name = var.internal_network
uuid = var.internal_network
}
}
Loading