Terraform

Adding kubernetes nodes and exploring terraform interpolation syntax

This is the sixth in a series of posts that will walk you through using terraform to deploy and configure virtual machines on vsphere. In this post I will build on the kubernetes cluster that was built in the previous post by add kubernetes nodes to it. We will also use terraform interpolation to combine variables and resource output. 1. Clone the 'https://github.com/sdorsett/terraform-vsphere-kubernetes' repository and switch to the '2018-12-28-post' branch.

Using an external data source with terraform

This is the fifth in a series of posts that will walk you through using terraform to deploy and configure virtual machines on vsphere. In this post you will get introduced to using an external data source with terraform. 1. Clone the https://github.com/sdorsett/terraform-vsphere-kubernetes repository and switch to the ‘2018-12-26-post’ branch.. We will start by cloning down the https://github.com/sdorsett/terraform-vsphere-kubernetes repository: [root@terraform ~]# git clone https://github.com/sdorsett/terraform-vsphere-kubernetes.git Cloning into 'terraform-vsphere-kubernetes'... remote: Enumerating objects: 13, done.

Using local-exec and remote-exec provisioners with terraform

This is the fourth in a series of posts that will walk you through using terraform to deploy and configure virtual machines on vsphere. In this post you will get introduced to using local-exec and remote-exec provisioners to make local (on the deloying system) and remote (on the deployed system) changes. If everything goes right we will also have a functional kubernetes controller when we finish that we can build on in future posts.

Using .gitignore to keep terraform secrets secret

This is the third in a series of posts that will walk you through using terraform to deploy and configure virtual machines on vsphere. In this post you will see how to use a .gitignore file to prevent a terraform.tfvar file from getting committed into a git repository. There is nothing vsphere specific in this post, but it is more about showing a pattern for keeping deployment specifics out of terraform code.

Using terraform to clone a virtual machine on vSphere

This is the second in a series of posts that will walk you through using terraform to deploy and configure virtual machines on vsphere. In this post you will get introduced to using terraform to clone an existing template to a new virtual machine. 1. Create a new directory for our terraform code. Start by creating a new directory for the terraform code and cd to it. [root@terraform ~]# mkdir terraform-vsphere-clone [root@terraform ~]# cd terraform-vsphere-clone/ [root@terraform terraform-vsphere-clone]# 2.

Using environment variables with terraform

This is the first in a series of posts that will walk you through using terraform to deploy and configure virtual machines on vsphere. In this post you will get introduced to using environment variables to keep details obout the vsphere infrastructure out of the terraform code. There is nothing vsphere specific in this post, but it is more about showing a pattern for keeping deployment specifics out of terraform code.

Learning terraform by deploying to vsphere

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:

Using Terraform to deploy an OVH public cloud server.

This is the fifth in a series of posts that will walk you through using the Openstack-based OVH public cloud. In this post you will get introduced to using Terraform to create Openstack servers using the Openstack API. This post is assumes you have already signed up for an account with ovhcloud.com, added a payment method, created a cloud project, created an Openstack user, created a ssh keypair in the Horizon UI and downloaded the openrc.