Skip to content
Snippets Groups Projects
Commit f0e98777 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Add sed command in a separate temote-exec provisioner

parent 645245df
No related branches found
No related tags found
2 merge requests!6Add CD feature to the repo,!1wip: test-keypair without file
Pipeline #8050 failed with stages
in 1 minute and 37 seconds
...@@ -150,12 +150,18 @@ resource "null_resource" "ops" { ...@@ -150,12 +150,18 @@ resource "null_resource" "ops" {
} }
# moves CRI_XCBC file into directory made above # moves CRI_XCBC file into directory made above
provisioner "remote-exec" {
inline = [
"sed -i -E 's/(ServerName ).*/\\1xdmod.${module.create-ohpc-instance.ssh_host}.nip.io/' /etc/httpd/conf.d/xdmod.conf",
]
}
# compute node registration on ohpc # compute node registration on ohpc
provisioner "remote-exec" { provisioner "remote-exec" {
inline = [ inline = [
"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:
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"
"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"] ]
} }
# ood node # ood node
......
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