Compare commits

..

No commits in common. "e2e930045c24931f8733de3ecc62efe549d5175a" and "7043a580ca08094b80b1077975f1a7c9d88e5209" have entirely different histories.

3 changed files with 4 additions and 7 deletions

View File

@ -8,7 +8,7 @@ variable "image_format" {
}
variable "dev_prefix" {
default = "sd"
default = "vd"
}
variable "permissions" {
@ -47,7 +47,7 @@ resource "opennebula_image" "system" {
permissions = var.permissions
}
/* data image not needed now
// data image
resource "opennebula_image" "data" {
for_each = var.vms
@ -59,7 +59,7 @@ resource "opennebula_image" "data" {
format = var.image_format
dev_prefix = var.dev_prefix
permissions = var.permissions
}*/
}
resource "opennebula_template" "vm_template" {
for_each = var.vms
@ -83,12 +83,9 @@ resource "opennebula_template" "vm_template" {
disk {
image_id = opennebula_image.system[each.key].id
}
/* Not needed now
disk {
image_id = opennebula_image.data[each.key].id
}
*/
sched_ds_requirements = ( each.value.sysdatastore != "" ? each.value.sysdatastore : var.one_sys_datastore )

View File

@ -3,5 +3,4 @@ locals {
system_image_name = "system.${local.fqdn}"
system_image_source = var.system_image_source
data_image_name = "data.${local.fqdn}"
group = "${var.group}"
}

View File

@ -1,3 +1,4 @@
resource "opennebula_group" "main" {
name = var.group
}