Skip to content
Snippets Groups Projects

Integration Testing: Sequential Merge and Validation of Four Feature Branches (PR #43,#44, #45,#46)

Compare and Show latest version
4 files
+ 57
10
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 13
6
@@ -9,7 +9,6 @@ required_version = ">= 0.14.0"
}
}
variable "ohpc_instance_name" {}
variable "image_ohpc" {}
variable "flavor" {}
@@ -26,7 +25,10 @@ variable "floating_ip_ohpc" {type = string}
variable "ohpc_user" {}
variable "ssh_private_key" {}
variable "vol_id" {}
variable "vol_ids" {
type = list(string)
default = []
}
# creates details for the OHPC instance
resource "openstack_compute_instance_v2" "ohpc" {
@@ -73,14 +75,15 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
instance_id = openstack_compute_instance_v2.ohpc.id
}
# Attach a volume
# Attach volumes
resource "openstack_compute_volume_attach_v2" "volume_attach" {
count = length(var.vol_ids)
instance_id = openstack_compute_instance_v2.ohpc.id
volume_id = var.vol_id
volume_id = var.vol_ids[count.index]
}
output "xdmod_instance_id" {
value = openstack_compute_instance_v2.ohpc.id
value = openstack_compute_instance_v2.ohpc.id
}
output "ssh_host" {
@@ -88,5 +91,9 @@ output "ssh_host" {
}
output "device" {
value = openstack_compute_volume_attach_v2.volume_attach.device
value = [
openstack_compute_volume_attach_v2.volume_attach[0].device,
openstack_compute_volume_attach_v2.volume_attach[1].device,
]
}
Loading