Skip to content

Commit

Permalink
Add thin disk provisioning & unit number to solve error.
Browse files Browse the repository at this point in the history
  • Loading branch information
0dragosh committed May 24, 2022
1 parent 4fd33ae commit 559613c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ resource "vsphere_virtual_machine" "this" {
content {
label = disk.value["label"]
size = disk.value["size"]
thin_provisioned = false
thin_provisioned = disk.value["thin_provisioned"]
io_share_count = 1000
unit_number = index(var.disks, disk.value)
}
}

Expand Down
5 changes: 3 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ variable "memory" {
variable "disks" {
description = "A specification list for a virtual disk devices on this virtual machine."
type = list(object({
label = string
size = number
label = string
size = number
thin_provisioned = optional(bool)
}))
}

Expand Down

0 comments on commit 559613c

Please sign in to comment.