using vmware provider, how to deploy VM’s to a set group of hosts

Hi,

I'm pretty new to TF and just joined a group that uses it heavily... Right now when we build VM's using the VMware provider it randomly picks a host to deploy to and usually it will build all VM's on a single VMhost. What looking for is some guidance on how to define a 5 hosts to use to build 10 VMs and TF would build 2 VM on the 5 hosts defined.

I've viewed the docs here: https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/compute_cluster_host_group

Which leads me to believe this is possible but I'm not sure how to implement this in my TF module so my plan will distribute to the hosts I decided evenly.

Again any help or direction would be appreciated, thanks in advance.

submitted by /u/webdz9r
[link] [comments]

Read more here: https://www.reddit.com/r/Terraform/comments/jwqc2j/using_vmware_provider_how_to_deploy_vms_to_a_set/

Content Attribution

This content was originally published by /u/webdz9r at Terraform, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: