damok6 / vagrant-terraform-esxi

A Vagrantfile to create a VM configured with Terraform and the ESXi Terraform Provider plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vagrant-Terraform-ESXi-Environment

This is a Vagrant script to create a Terraform environment with the ESXi Terraform Provider plugin. This will will work cross-platform (Windows, Linux, Mac) with minimal configuration, as long as you have Vagrant.

Dependencies:

  • VirtualBox (Version 5.2.18 confirmed working)
  • Vagrant (version 2.2.2 confirmed working)
  • The OVF Tool Linux bundle. Instructions below if you do not already have it.

Instructions

  1. Clone this repository.
  2. Download ovftool 4.3 from the VMWare website and store the .bundle file (e.g. VMware-ovftool-4.3.0-7948156-lin.x86_64.bundle) in the cloned repository directory. Unfortunately, you need a VMWare login to download this file.
  3. Run vagrant up in the cloned repository directory.
  4. When vagrant has completed virtual machine creation, ssh into the VM using vagrant ssh.
  5. After you ssh into the VM you can navigate to the mounted Git repository directory by using cd /vagrant. From here you can call terraform commands against configurations stored on your computer. See here for an example ESXi configuration.

References

About

A Vagrantfile to create a VM configured with Terraform and the ESXi Terraform Provider plugin.