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 }