From 85bb5d597dc5a134744f5833edb7ff077eac8733 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 2 Mar 2023 10:12:45 +0100 Subject: [PATCH] fix(nebula): try to add mac and IP support --- modules/nebula/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nebula/main.tf b/modules/nebula/main.tf index 352afec..ff3ce36 100644 --- a/modules/nebula/main.tf +++ b/modules/nebula/main.tf @@ -105,7 +105,8 @@ resource "opennebula_template" "vm_template" { content { network_id = nic.value.network_id model = "virtio" - mac = nic.value.mac + mac = ( nic.value.mac != "" ? nic.value.mac : "" ) + ip = ( nic.value.ip != "" ? nic.value.ip : "" ) } } permissions = var.permissions