feat(vmware): adding firmware choice support for vms
Now we have to tell witch boot firmware to use 'efi' of 'bios'
This commit is contained in:
parent
2b39ee3e29
commit
643c8e7547
|
@ -33,6 +33,7 @@ resource "vsphere_virtual_machine" "vm" {
|
||||||
num_cpus = each.value.cpu
|
num_cpus = each.value.cpu
|
||||||
memory = each.value.ram
|
memory = each.value.ram
|
||||||
guest_id = each.value.guest_id
|
guest_id = each.value.guest_id
|
||||||
|
firmware = each.value.firmware
|
||||||
|
|
||||||
dynamic "network_interface" {
|
dynamic "network_interface" {
|
||||||
for_each = each.value.network_interfaces
|
for_each = each.value.network_interfaces
|
||||||
|
|
|
@ -5,6 +5,7 @@ variable "vms" {
|
||||||
cpu = number
|
cpu = number
|
||||||
ram = number
|
ram = number
|
||||||
guest_id = string
|
guest_id = string
|
||||||
|
firmware = string
|
||||||
disks = map(object({
|
disks = map(object({
|
||||||
size = string
|
size = string
|
||||||
thin_provisioned = bool
|
thin_provisioned = bool
|
||||||
|
|
Loading…
Reference in New Issue