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

Rearranging the order so mounting the vol happens before ansible run

parent 8efd2b0c
No related branches found
No related tags found
No related merge requests found
......@@ -147,6 +147,14 @@ provisioner "remote-exec" {
]
}
provisioner "remote-exec" {
inline = [
"sudo mount ${module.create-ohpc-instance.device}1 /var/lib/mysql",
"sudo df -h",
"sudo systemctl restart mariadb",
]
}
# compute node registration on ohpc
provisioner "remote-exec" {
inline = [
......@@ -162,12 +170,4 @@ provisioner "remote-exec" {
# "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",
]
}
}
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