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

Merge branch 'feat-rearrange-provisioners' into 'master'

Rearranging the order so mounting the vol happens before ansible run

See merge request !26
parents 8efd2b0c b856b742
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,14 @@ provisioner "remote-exec" { ...@@ -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 # compute node registration on ohpc
provisioner "remote-exec" { provisioner "remote-exec" {
inline = [ inline = [
...@@ -162,12 +170,4 @@ provisioner "remote-exec" { ...@@ -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"] # "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