Install Rancher 2 w/ Terraform & Ansible - Part #1 - Provisioning your first VPS with Terraform
Throughout this tutorial series we will need multiple servers available on to which we shall install the various features and functionalities that make a Rancher 2 / Kubernetes HA cluster come together. The aim of this tutorial in particular is to create our virtual server(s), or "cloud" infrastructure in a reliable, repeatable manner. For this, we will use HashiCorp's Terraform. In short, Terraform allows you to define what your server infrastructure looks like using code. To complete this tutorial, you will need: An account with a supported cloud provider Docker Note I am using Digital Ocean in this tutorial series because you get a $100 worth of credit when you sign up there using that link. It's more than enough to complete this tutorial series. By the end of this tutorial you will have: Created a Terraform configuration-as-code file describing the infrastructure you want to provision Validated your new Terraform execution plan Applied your plan, creating your first VPS using Terraform Destroyed your plan, cleaning up after yourself