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

feat added new remote exec block to clone CRI_XCBC

parent 12f3fefb
No related branches found
No related tags found
No related merge requests found
Pipeline #10083 failed with stages
in 12 minutes and 3 seconds
...@@ -132,10 +132,16 @@ resource "null_resource" "ops" { ...@@ -132,10 +132,16 @@ resource "null_resource" "ops" {
private_key = var.ssh_private_key private_key = var.ssh_private_key
} }
# compute node registration on ohpc # clone CRI_XCBC on node
provisioner "remote-exec" { provisioner "remote-exec" {
inline = [ inline = [
"git clone https://github.com/jprorama/CRI_XCBC.git /", "git clone https://github.com/jprorama/CRI_XCBC.git /",
]
}
# compute node registration on ohpc
provisioner "remote-exec" {
inline = [
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"
] ]
......
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