Skip to content
Snippets Groups Projects
Commit f5c2b124 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Merge branch 'feat-mount-data-vol' into 'master'

Feat mount data vol

See merge request !9
parents 1bd0fe8d b3f3cc5b
No related branches found
No related tags found
1 merge request!9Feat mount data vol
Pipeline #8481 passed with stages
in 1 minute and 34 seconds
...@@ -157,4 +157,13 @@ provisioner "remote-exec" { ...@@ -157,4 +157,13 @@ provisioner "remote-exec" {
# for net in module.create-ood-instance.network: # 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"] # "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" { ...@@ -74,3 +74,7 @@ output "id" {
output "ssh_host" { output "ssh_host" {
value = var.floating_ip_ohpc 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