diff --git a/main.tf b/main.tf index 072b2315c29d2d1bbbec3eaa225f16ba56ff6c74..ac4705f0759e14362c5ada0e898d951c196b9db6 100644 --- a/main.tf +++ b/main.tf @@ -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", - ] - } - }