Try to fix network id issue

This commit is contained in:
Philippe Caseiro 2021-03-22 21:35:58 +01:00
parent 2f5bd95903
commit 149b5f526e
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ virtual_machines = {
source = "http://localhost/fabrica/infra/production/amon.fabrica.local/system/amon.fabrica.local" source = "http://localhost/fabrica/infra/production/amon.fabrica.local/system/amon.fabrica.local"
} }
} }
depends = [ "internet" ]
}, },
scribe = { scribe = {
fqdn = "scribe.fabrica.local", fqdn = "scribe.fabrica.local",

View File

@ -71,7 +71,7 @@ resource "opennebula_template" "vm_template" {
for_each = var.network_interfaces for_each = var.network_interfaces
content { content {
network_name = nic.value.network_name network_id = nic.value.network_id
model = "virtio" model = "virtio"
ip = nic.value.ip ip = nic.value.ip
} }