Skip to content
Snippets Groups Projects
Commit f49a28e9 authored by Eesaan Atluri's avatar Eesaan Atluri Committed by John-Paul Robinson
Browse files

Use the compute_nodes dict format from group_vars/all.

parent 426a36ca
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ resource "null_resource" "compute_ops" {
provisioner "remote-exec" {
inline = [
for node, net in module.nodes.network:
"ansible-playbook -i /CRI_XCBC/hosts -l `hostname -s` -e \"{'node_name':'${node}', 'node_ip_v4':'${net[0].fixed_ip_v4}', 'node_mac':'${net[0].mac}'}\" /CRI_XCBC/site-ops.yaml -b -v"
]
"ansible-playbook -i /CRI_XCBC/hosts -l `hostname -s` -e \"{'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