From 196c4b58d4bc3d34b84475dc49d922d2f6b0ca72 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 22 Mar 2021 21:13:02 +0100 Subject: [PATCH] try to fix depends --- terraform/04-virtual-machines.tfvars | 2 -- terraform/main.tf | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/04-virtual-machines.tfvars b/terraform/04-virtual-machines.tfvars index bff92c0..f9717c7 100644 --- a/terraform/04-virtual-machines.tfvars +++ b/terraform/04-virtual-machines.tfvars @@ -41,7 +41,5 @@ virtual_machines = { source = "http://localhost/fabrica/infra/production/scribe.fabrica.local/system/scribe.fabrica.local" } }, - - depends = [ opennebula_virtual_network.production.id ] } } \ No newline at end of file diff --git a/terraform/main.tf b/terraform/main.tf index bc2e165..25bf0e4 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -68,7 +68,9 @@ module "vms" { system_image_source = each.value.disks.system.source data_image_source = "" - depends = each.value.depends + depends = [ + opennebula_virtual_network["vnet"] + ] }