Sample Exchange

 View Only

terraform-vsphere-multi-writer 

Nov 14, 2021 06:39 AM

Sample code showing how to deploy VM on vSAN with shared disks using the multi-writer flag. 

terraform-vsphere-multi-writer

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.

Requirements

  • Terraform v1.0.10

Procedure

  1. Copy terraform.tfvars.sample to terraform.tfvars
cp terraform.tfvars.sample terraform.tfvars
  1. Edit and update the variables in terraform.tfvars

  2. Initialize the project

terraform init
  1. Validate the configuration
terraform plan -out=tfplan
  1. Deploy
terraform apply "tfplan"
  1. Destroy
terraform destroy

#OtherLanguage
#vSAN
#vSphere
#MIT
#terraform
#vSphere

Statistics
0 Favorited
1 Views
1 Files
0 Shares
1 Downloads
Attachment(s)
zip file
terraform-vsphere-multi-writer-main.zip   5 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.