This post is the beginning of a series of posts that will walt through how to use terraform to deploy and configure virtual machines on vsphere. During this series of posts I will try to show how to do this deployment in a generic way in order to keep the terraform code as free as possible of the details of the environment being deployed into.
This series assumes you have the following:
- a vsphere instance that you have permissions to create virtual machines on. Terraform can create and configure resources on ESXi, but this series will require vsphere since we will be cloning virtual machines from a base template.
- terraform is installed on your workstation, laptop or a virtual machine that can access the vsphere instance
- a github account for deploying terraform code to (optional)
The posts in this series of blogs that have been released are:
- Using environment variables with terraform
- Using terraform to clone a virtual machine on vSphere
- Using .gitignore to keep terraform secrets secret
- Using local-exec and remote-exec provisioners with terraform
- Using an exteral data source with terraform
- Adding kubernetes nodes and exploring terraform interpolation syntax