terraform-vsphere-virtual-machine
terraform-vsphere-virtual-machine copied to clipboard
Deploy vm without postfix number in name
This will allow to create VM's hostname and name without postfix number when var.vm_count == 1.
Hello, Can you modify to : name = "${var.vm_name_prefix}${var.vm_count == 1 ? "" : "-${count.index}"}"
Without the hyphen when var.vm_count == 1. Thank you
@Antoine98 You are totally right. Changes were made. Thank you!
I haven't maintained this module in a very long time, and I don't have the vSphere infra to test any changes on, so I'm closing this in preparation of archival.
If you found the module useful, feel free to fork it!