fix(module): updating default group creation for virtualMachine

This commit is contained in:
Philippe Caseiro 2023-01-20 13:54:37 +01:00
parent f821f97b9e
commit b209942b3d
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
resource "opennebula_group" "main" {
name = var.group
}
// OpenNebula disk image ! // OpenNebula disk image !
resource "opennebula_image" "system" { resource "opennebula_image" "system" {
name = local.system_image_name name = local.system_image_name
@ -24,7 +29,7 @@ resource "opennebula_image" "data" {
driver = "qcow2" driver = "qcow2"
format = "qcow2" format = "qcow2"
permissions = "660" permissions = "660"
group = "production" group = var.group
} }
// OpenNebula (VM) Template definition // OpenNebula (VM) Template definition