Vsphere

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 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.

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:

Installing a ESXi 6.0 virtual machine for use with Packer

This is the second in a series of posts on using a Packer pipeline to generate Vagrant .box files. In order to begin using Packer to create images, we will first need to lay the “virtual” ground work. Packer can create virtual machine images on a wide variety of virtualization or cloud platforms, but since I work for VMware I have been using the ESXi hypervisor. This post will be covering installing ESXi as a virtual machine on a vSphere cluster.

Creating a vCSA 5.5 .box template on CentOS 6.5 for vagrant deployment

In the last few blogs post we have created ESXi .box templates, but in order to create a complete virtual lab using vagrant we will also need a vCenter Server Appliance virtual machine. The vCSA comes as a .ova template, so we will need to convert it to a vagrant-vmware-ovf .box template before we can use it with vagrant. In this post we will need several packages installed, that we have covered in the last few posts:

Using packer on CentOS 6.5 to create an ESXi .box template for vagrant deployment

In the previous post I demonstrated using packer to create a ESXi .box template on OS X with fusion and the vagrant vmware provider. Both of these pieces of software have a cost associated with their usage, so in this post I will demonstrate how to use CentOS 6.5 and ESXi for the same results. In this post we will again talk about two helpful gosddc projects: gosddc/packer-post-processor-vagrant-vmware-ovf. This repo contains a packer post processor that leverages VMware OVF Tool to create a vmware_ovf Vagrant box that is compatible with vagrant-vcloud, vagrant-vcenter and vagrant-vcloudair vagrant providers.

Using advanced vagrant-vsphere provider settings and vCenter guest customization

This post will pick up where we left off by demonstrating more vagrant-vsphere provider settings using the CentOS template we customized in the last blog post. Let’s get started: 1. Create a new customization specification in the vSphere web client. This customization specification will allow us to set the hostname of the vm created by “vagrant up” to the same name as the virtual machine. Go to Home | Customization Specification Manager: Click the “Create a new specification” button: Select “Linux” for the “Target VM Operating System” and name the customization specification.

Installing Vagrant and the vagrant-vsphere plugin on CentOS 6.x

Some readers might find this post to be a little “in the weeds” and cover details they are already familiar with. I struggled in my first attempts to get Vagrant working on CentOS, because I couldn’t find any good tutorials that covered the entire process. If you get bored with basic network configuration or have another preferred method for installing Ruby, please understand I’m trying to provide as much detail as possible to those without much linux experience.