From 985fd624ce6b20afcc78a2534eaeadb94bb9be37 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 24 Feb 2023 06:03:44 +0100 Subject: [PATCH] feat(nebula): support system data store placement --- modules/nebula/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) 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"