inderchauhan76 / terraform-vsphere-examples

Provide some terraform example with vsphere

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform introduction

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.

Version used:

  • Terraform 0.11.2

Vsphere authentification

The vsphere provider is used to interact with the many resources supported by vsoere. The provider needs to be configured with the proper credentials before it can be used.

provider "vsphere" {
  user           = "my-litle-user"
  password       = "secret"
  vsphere_server = "my-vcenter.com"
}

Getting Started

Before running Terraform operations, download plugins using the terraform init command.

terraform init

Show us what Terraform is going to do before runninng the operation.

terraform plan

Apply the plan that we just created, which will provision our VMs.

terraform apply

Destroy infrastructure we previously created.

terraform destroy

Documentation

https://www.terraform.io/docs/providers/vsphere/index.html

https://github.com/terraform-providers/terraform-provider-vsphere

About

Provide some terraform example with vsphere

License:GNU General Public License v3.0


Languages

Language:HCL 99.7%Language:Shell 0.3%