feat(nebula): support system data store placement
This commit is contained in:
parent
e785cf9df0
commit
985fd624ce
|
@ -32,6 +32,11 @@ variable "one_prod_ds" {
|
||||||
default = "101"
|
default = "101"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "one_sys_datastore" {
|
||||||
|
default = "100"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// system image
|
// system image
|
||||||
resource "opennebula_image" "system" {
|
resource "opennebula_image" "system" {
|
||||||
for_each = var.vms
|
for_each = var.vms
|
||||||
|
@ -88,6 +93,8 @@ resource "opennebula_template" "vm_template" {
|
||||||
image_id = opennebula_image.data[each.key].id
|
image_id = opennebula_image.data[each.key].id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sched_ds_requirements = ( each.value.sysdatastore != "" ? each.value.sysdatastore : var.one_sys_datastore )
|
||||||
|
|
||||||
os {
|
os {
|
||||||
arch = "x86_64"
|
arch = "x86_64"
|
||||||
boot = "disk0,nic0"
|
boot = "disk0,nic0"
|
||||||
|
|
Loading…
Reference in New Issue