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

Add ood_ops to register ood node in WW DB.

parent f49a28e9
No related branches found
No related tags found
No related merge requests found
...@@ -133,3 +133,22 @@ resource "null_resource" "compute_ops" { ...@@ -133,3 +133,22 @@ resource "null_resource" "compute_ops" {
} }
} }
# ood node post provision
resource "null_resource" "ood_ops" {
triggers = {
ohpc_instance = module.create-ohpc-instance.id
}
connection {
host = module.create-ohpc-instance.ssh_host
user = var.ohpc_user
private_key = file(var.ssh_private_key)
}
# ood node
provisioner "remote-exec" {
inline = [
for net in module.create-ood-instance.network:
"ansible-playbook -i /CRI_XCBC/hosts -l `hostname -s` -e \"{'compute_nodes':[{'name':'${var.ood_instance_name}', 'ip':'${net.fixed_ip_v4}', 'mac':'${net.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