terraform-vsphere-virtual-machine icon indicating copy to clipboard operation
terraform-vsphere-virtual-machine copied to clipboard

Deploy vm without postfix number in name

Open Koleon opened this issue 6 years ago • 2 comments

This will allow to create VM's hostname and name without postfix number when var.vm_count == 1.

Koleon avatar Jan 10 '19 13:01 Koleon

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 avatar Feb 07 '19 22:02 Antoine98

@Antoine98 You are totally right. Changes were made. Thank you!

Koleon avatar Feb 08 '19 09:02 Koleon

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!

vancluever avatar Jul 25 '24 01:07 vancluever