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
+ 67
10
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 23
6
@@ -7,6 +7,13 @@ required_version = ">= 0.14.0"
version = "~> 1.42.0"
}
}
backend "s3" {
bucket = "my-terraform-state-bucket"
key = "state/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "my-terraform-lock-table"
}
}
@@ -26,7 +33,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 +83,18 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
instance_id = openstack_compute_instance_v2.ohpc.id
}
# Attach a volume
resource "openstack_compute_volume_attach_v2" "volume_attach" {
# Attach specific volumes
resource "openstack_compute_volume_attach_v2" "attach_prod_volume" {
instance_id = openstack_compute_instance_v2.ohpc.id
volume_id = var.vol_id
volume_id = var.data_volume
}
resource "openstack_compute_volume_attach_v2" "attach_prod_queue_volume" {
instance_id = openstack_compute_instance_v2.ohpc.id
volume_id = var.prod_volume_id
}
output "xdmod_instance_id" {
value = openstack_compute_instance_v2.ohpc.id
value = openstack_compute_instance_v2.ohpc.id
}
output "ssh_host" {
@@ -88,5 +102,8 @@ output "ssh_host" {
}
output "device" {
value = openstack_compute_volume_attach_v2.volume_attach.device
value = [
openstack_compute_volume_attach_v2.attach_prod_volume.device,
openstack_compute_volume_attach_v2.attach_prod_queue_volume.device
]
}
Loading