From 149b5f526eed496c7f2dfd03003c6feded958613 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 22 Mar 2021 21:35:58 +0100 Subject: [PATCH] Try to fix network id issue --- terraform/04-virtual-machines.tfvars | 1 + terraform/modules/virtualMachine/main.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/terraform/04-virtual-machines.tfvars b/terraform/04-virtual-machines.tfvars index d2aedea..1940e41 100644 --- a/terraform/04-virtual-machines.tfvars +++ b/terraform/04-virtual-machines.tfvars @@ -19,6 +19,7 @@ virtual_machines = { source = "http://localhost/fabrica/infra/production/amon.fabrica.local/system/amon.fabrica.local" } } + depends = [ "internet" ] }, scribe = { fqdn = "scribe.fabrica.local", diff --git a/terraform/modules/virtualMachine/main.tf b/terraform/modules/virtualMachine/main.tf index d3ea601..0e06c65 100644 --- a/terraform/modules/virtualMachine/main.tf +++ b/terraform/modules/virtualMachine/main.tf @@ -71,7 +71,7 @@ resource "opennebula_template" "vm_template" { for_each = var.network_interfaces content { - network_name = nic.value.network_name + network_id = nic.value.network_id model = "virtio" ip = nic.value.ip }