Skip to content
Snippets Groups Projects

Rearranging the order so mounting the vol happens before ansible run

Merged Ravi Tripathi requested to merge feat-rearrange-provisioners into master
1 file
+ 8
8
Compare changes
  • Side-by-side
  • Inline
+ 8
8
@@ -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",
]
}
}
}
Loading