feat(nebula): support system data store placement

This commit is contained in:
Philippe Caseiro 2023-02-24 06:03:44 +01:00
parent e785cf9df0
commit 985fd624ce
1 changed files with 7 additions and 0 deletions

View File

@ -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"