Skip to content
Snippets Groups Projects
Commit b3f3cc5b authored by Eesaan Atluri's avatar Eesaan Atluri Committed by Ravi Tripathi
Browse files

mount the attached data volume at /var/lib/mysql

parent 1bd0fe8d
No related branches found
No related tags found
No related merge requests found
......@@ -157,4 +157,13 @@ provisioner "remote-exec" {
# for net in module.create-ood-instance.network:
# "ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e \"{'compute_nodes':[{'name':'${var.ood_instance_name}', 'ip':'${net.fixed_ip_v4}', 'mac':'${net.mac}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}\" /CRI_XCBC/site-ops.yaml -b -v"]
# }
provisioner "remote-exec" {
inline = [
"sudo mount ${module.create-ohpc-instance.device}1 /var/lib/mysql",
"sudo df -h",
"sudo systemctl restart mariadb",
]
}
}
......@@ -74,3 +74,7 @@ output "id" {
output "ssh_host" {
value = var.floating_ip_ohpc
}
output "device" {
value = openstack_compute_volume_attach_v2.volume_attach.device
}
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