wirkmood / TerraformVMware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TerraformVMware

This repository is a sample how user terraform in a VMware environment.

How to deploy a virtual machine with Terraform and set it with a custom parameters. This can be very useful saving time in production environment.

Pre requirement :

  1. vCenter Appliance (using with 1 ESXi). --> 1 DATACENTER --> 1 DATASTORE --> 1 CLUSTER --> 1 vsphere virtual network name

  2. Lastest terraform version (Using Windows or Linux CLI see : https://www.terraform.io/downloads.html)

  3. a cloned Virtual Machine within VMware tools installed.

  4. If you use a Linux environment you have to install terraform.

  5. Open CLI command (DOS or Bash).

  6. Go to terraform folder and terraform.exe.

  7. "terraform init" to initialize terraform.

  8. Go to Windows or Linux folder.

  9. Set appropriate variables on "variable.tf" and "main.tf" files.

  10. Check your deployement using "terraform plan" command.

  11. Deploy your VM using "terraform apply" command.

  12. You are able to destroy your ressource using "terraform destroy".

About


Languages

Language:HCL 100.0%