diff --git a/modules/nebula/main.tf b/modules/nebula/main.tf index 428cdd1..de05d75 100644 --- a/modules/nebula/main.tf +++ b/modules/nebula/main.tf @@ -32,6 +32,11 @@ variable "one_prod_ds" { default = "101" } +variable "one_sys_datastore" { + default = "100" +} + + // system image resource "opennebula_image" "system" { for_each = var.vms @@ -88,6 +93,8 @@ resource "opennebula_template" "vm_template" { image_id = opennebula_image.data[each.key].id } + sched_ds_requirements = ( each.value.sysdatastore != "" ? each.value.sysdatastore : var.one_sys_datastore ) + os { arch = "x86_64" boot = "disk0,nic0"