From 1558e0b5a841ff8749024359d4802ab8398cdaa2 Mon Sep 17 00:00:00 2001 From: Ravi Tripathi <ravi89@uab.edu> Date: Mon, 26 Jun 2023 16:29:27 -0500 Subject: [PATCH] TF complaing about char 1, hence not escaping the \ correctly --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 780f146..9391c5d 100644 --- a/main.tf +++ b/main.tf @@ -153,7 +153,7 @@ resource "null_resource" "ops" { # compute node registration on ohpc provisioner "remote-exec" { inline = [ - "sed -i -E 's/(ServerName ).*/\1xdmod.${module.create-ohpc-instance.ssh_host}.nip.io/' /etc/httpd/conf.d/xdmod.conf", + "sed -i -E 's/(ServerName ).*//\1xdmod.${module.create-ohpc-instance.ssh_host}.nip.io/' /etc/httpd/conf.d/xdmod.conf", for node, net in module.nodes.network: "ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e \"{'cod_deploy':'false', 'compute_nodes':[{'name':'${node}', 'ip':'${net[0].fixed_ip_v4}', 'mac':'${net[0].mac}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}\" /CRI_XCBC/site-ops.yaml -b -v"] } -- GitLab