From f49a28e95d53ab246444403c307db23e17a29201 Mon Sep 17 00:00:00 2001
From: Eesaan Atluri <atlurie@uab.edu>
Date: Mon, 16 Sep 2019 10:39:28 -0500
Subject: [PATCH] Use the compute_nodes dict format from group_vars/all.

---
 main.tf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.tf b/main.tf
index 2031ad4..600a773 100644
--- a/main.tf
+++ b/main.tf
@@ -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"]
   }
 }
+
-- 
GitLab