This terraform files provision node in Maas and deploy ubuntu os and KVM on it.
Terraform is an infrastructure as code tool which is used originally for provisioning cloud instances on various cloud providers. With Terraform and the aid of the IaC, we can provision machines and cloud instances with codes and without direct human interactions. Terraform is responsible for provisioning systems, usually Immutable ones. Terraform.io for more information.
MAAS is Metal As A Service, a service that treats physical servers like virtual machines (instances) in the cloud.
This file accepts two environment variables, MAAS_API_URL and MAAS_API_KEY
-
Install Terraform on your system
- You can find installation guid in: https://www.terraform.io/downloads
-
Clone this repo on your system
-
run this command:
- terraform init
- terraform plan
- terraform apply
- Name: Nima Tabatabaee
- Grops: Bladrina
- Practice Name: Ops-002-terraform-maas-demo
- @dwsclass dws-ops-002-terraform
Copyright 2022 Nima Tabatabaee nima.tabatabaee@gmail.com