Skip to content
Snippets Groups Projects
Commit fbed08cf authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Refactor remote-exec provisioners in Terraform script

Fix for mounting of volumes is done in image build factory via fstab

ref: https://github.com/eesaanatluri/CRI_Cluster_Monitor/pull/42
parent d8a0938c
No related branches found
No related tags found
No related merge requests found
Pipeline #9789 failed with stages
in 1 minute and 28 seconds
...@@ -132,29 +132,6 @@ resource "null_resource" "ops" { ...@@ -132,29 +132,6 @@ resource "null_resource" "ops" {
private_key = var.ssh_private_key private_key = var.ssh_private_key
} }
provisioner "remote-exec" {
inline = [
"ls -al /CRI_XCBC",
]
}
# moves CRI_XCBC file into directory made above
provisioner "remote-exec" {
inline = [
"sudo sed -i -E 's/xdmod..nip.io/xdmod.rc.uab.edu/g' /etc/httpd/conf.d/xdmod.conf",
"sudo sed -i -E 's/xdmod..nip.io/xdmod.rc.uab.edu/g' /etc/xdmod/simplesamlphp/config/config.php",
"sudo systemctl restart httpd",
]
}
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 = [
......
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