Sample code showing how to deploy VM on vSAN with shared disks using the multi-writer flag.
Sample code to deploy VM with shared disk on vSAN using Terraform.
This code creates a content library and imports an OVA that will be used to create the test VMs. The first VM has additional data disks added with the sharing set to multi-writer. All additional VM attach the data disks created in the first VM.
cp terraform.tfvars.sample terraform.tfvars
Edit and update the variables in terraform.tfvars
Initialize the project
terraform init
terraform plan -out=tfplan
terraform apply "tfplan"
terraform destroy