From fbed08cf1b2d95a3df63f5e79199d2c9f91680ce Mon Sep 17 00:00:00 2001 From: Krish Moodbidri <krish94@uab.edu> Date: Mon, 22 Jan 2024 15:50:20 -0600 Subject: [PATCH] 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 --- main.tf | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/main.tf b/main.tf index e880538..32afcc6 100644 --- a/main.tf +++ b/main.tf @@ -132,29 +132,6 @@ resource "null_resource" "ops" { 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 provisioner "remote-exec" { inline = [ -- GitLab