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
2 files
+ 30
16
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 13
7
@@ -9,7 +9,6 @@ required_version = ">= 0.14.0"
@@ -9,7 +9,6 @@ required_version = ">= 0.14.0"
}
}
}
}
variable "ohpc_instance_name" {}
variable "ohpc_instance_name" {}
variable "image_ohpc" {}
variable "image_ohpc" {}
variable "flavor" {}
variable "flavor" {}
@@ -76,13 +75,18 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
@@ -76,13 +75,18 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
instance_id = openstack_compute_instance_v2.ohpc.id
instance_id = openstack_compute_instance_v2.ohpc.id
}
}
# Attach volumes
# Attach specific volumes
resource "openstack_compute_volume_attach_v2" "volume_attach" {
resource "openstack_compute_volume_attach_v2" "attach_prod_volume" {
count = length(var.vol_ids)
instance_id = openstack_compute_instance_v2.ohpc.id
 
volume_id = data_volume
 
}
 
 
resource "openstack_compute_volume_attach_v2" "attach_prod_queue_volume" {
instance_id = openstack_compute_instance_v2.ohpc.id
instance_id = openstack_compute_instance_v2.ohpc.id
volume_id = var.vol_ids[count.index]
volume_id = prod_volume_id
}
}
 
output "xdmod_instance_id" {
output "xdmod_instance_id" {
value = openstack_compute_instance_v2.ohpc.id
value = openstack_compute_instance_v2.ohpc.id
}
}
@@ -93,7 +97,9 @@ output "ssh_host" {
@@ -93,7 +97,9 @@ output "ssh_host" {
output "device" {
output "device" {
value = [
value = [
openstack_compute_volume_attach_v2.volume_attach[0].device,
openstack_compute_volume_attach_v2.attach_prod_volume.device,
openstack_compute_volume_attach_v2.volume_attach[1].device,
openstack_compute_volume_attach_v2.attach_prod_queue_volume.device
]
]
}
}
 
 
Loading