How to deploy a nested vSAN VMware cluster with Terraform

Recently I started to learn more about Terraform and I decided to use it in my homelab to deploy a VMware vSAN cluster using terraform.

I made a small module which takes few parameters and deploys a nested vSAN cluster using OVA Virtual appliance available as a fling download on Broadcom.

The module is available on Github here.

Using the above module, Terraform will deploy nested ESXis on top of one physical ESXi you need to already have. The physical ESXi has to be managed by a vCenter and part of a cluster. Along with the virtual appliances, one cluster will also be created in the vCenter with vSAN enabled. Once the virtual appliances are powered on, terraform will add them to the newly created cluster.

Is a simple module which can save you time during testing with new clusters. Once terraform finishes to run,

Leave a Reply

Your email address will not be published. Required fields are marked *

I’m Stefan

I work in IT industry for almost 9 years already. I have been pasionated about computers since forever, therefore I decided to open a blog where I will write about this hobby.