To install Terraform, find the appropriate package for your system and download it
After downloading Terraform, unzip the package
After installing Terraform, verify the installation worked by opening a new terminal session and checking that terraform is available.
Installing Terraform provider Opennebula
You need to install go first: https://golang.org/doc/install
Use the `wget` command and the link from Go to download the tarball:
The installation of Go consists of extracting the tarball into the `/usr/local`
We will call our workspace directory projects, but you can name it anything you would like. The `-p` flag for the `mkdir` command will create the appropriate directory tree
To execute Go like any other command, we need to append its install location to the $PATH variable.
Additionally, define the GOPATH and GOBIN Go environment variables:
After go is installed and set up, just type:
Optional post-installation Step
Copy your **terraform-provider-opennebula** binary in a folder, like `/usr/local/bin`, and write this in `~/.terraformrc`:
Example for `/usr/local/bin`:
We can add the Ansible PPA by typing the following command:
Next, we need to refresh our system's package index so that it is aware of the packages available in the PPA. Afterwards, we can install the software:
Deploy a Kubernetes cluster
Terraform code is written in a language called HCL in files with the extension “.tf”. It is a declarative language, so your goal is to describe the infrastructure you want, and Terraform will figure out how to create it.
This repository provide an Ansible playbook to Build a Kubernetes cluster with kubeadm. The goal is easily install a Kubernetes cluster on machines running `CentOS 7`
First, initialize Terraform for your project. This will read your configuration files and install the plugins for your provider:
In a terminal, go into the folder where you created main.tf, and run the `terraform plan` command:
The plan command lets you see what Terraform will do before actually doing it.
To actually create the instance, run the `terraform apply` command:
You can access Dashboard using the kubectl command-line tool by running the following command:
The last step is to complete the cluster life cycle by removing your resources, do: `terraform destroy`