Deploying and configuring a Mesos cluster using Terraform
Terraform is an infrastructure building, changing, and versioning tool to handle the existing popular services as well as custom in-house solutions safely and efficiently that is owned by HashiCorp and written in Go language. In this module, we will first discuss how we can install Terraform, and then, we will consider how we can use Terraform to spin up a Mesos cluster.
Installing Terraform
Head to https://www.terraform.io/downloads.html, download the appropriate version for your platform, and unzip it, as follows:
$ wget https://releases.hashicorp.com/terraform/0.6.9/terraform_0.6.9_linux_amd64.zip $ unzip terraform_0.6.9_linux_amd64.zip
You will note that the terraform
archive is a bunch of binaries once you unzip them, which looks similar to the following:
Now, add the path to the directory in the PATH
variable so that you can access the terraform
command from any directory.
If everything goes well, then you can see the usage of terraform...