Skip to content
Snippets Groups Projects
Commit 0c9a1eb6 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

reused variables for volume TF_VAR_xdmod_*

parent d51ed3e6
No related merge requests found
Pipeline #10630 failed with stages
in 34 seconds
...@@ -79,12 +79,12 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" { ...@@ -79,12 +79,12 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
# Attach specific volumes # Attach specific volumes
resource "openstack_compute_volume_attach_v2" "attach_prod_volume" { resource "openstack_compute_volume_attach_v2" "attach_prod_volume" {
instance_id = openstack_compute_instance_v2.ohpc.id instance_id = openstack_compute_instance_v2.ohpc.id
volume_id = var.prod_volume volume_id = TF_VAR_data_volume
} }
resource "openstack_compute_volume_attach_v2" "attach_prod_queue_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.prod_queue_volume volume_id = TF_VAR_xdmod_queue_data_volume
} }
output "xdmod_instance_id" { output "xdmod_instance_id" {
value = openstack_compute_instance_v2.ohpc.id value = openstack_compute_instance_v2.ohpc.id
......
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