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"] + ] }