Skip to content
Snippets Groups Projects

feat: Add new data volume for XDMod queue data

Closed Krish Moodbidri requested to merge feat-xdmod-queue-volume-create into master
2 files
+ 12
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 11
2
@@ -55,7 +55,8 @@ output "keypair_name" {
}
data "openstack_networking_network_v2" "external_net" {name = var.external_network}
data "openstack_blockstorage_volume_v2" "disk" {name = var.data_volume}
data "openstack_blockstorage_volume_v3" "disk" {name = var.data_volume}
data "openstack_blockstorage_volume_v3" "disk2" {name = var.xdmod_queue_data_volume}
# runs the ohpc-instance module - creates ohpc instance using variables defined above
# calls functions from dmz-network, import-keypair, and floating-ip-address modules to get values created there for use
@@ -71,7 +72,7 @@ module "create-ohpc-instance" {
floating_ip_ohpc = module.floating-ip-address.ohpc_address
ohpc_user = var.ohpc_user
ssh_private_key = var.ssh_private_key
vol_id = data.openstack_blockstorage_volume_v2.disk.id
vol_id = data.openstack_blockstorage_volume_v3.disk.id
}
# runs the ood-instance module - creates ood instance using variables defined above
@@ -155,6 +156,14 @@ provisioner "remote-exec" {
]
}
provisioner "remote-exec" {
inline = [
"sudo mount ${module.create-ohpc-instance.device}1 /data/xdmod/queues",
"sudo df -h",
"sudo systemctl restart mariadb",
]
}
# compute node registration on ohpc
provisioner "remote-exec" {
inline = [
Loading