This is a Terraform based project for the deployment of Debian and CentOS servers, for the purposes of my LPI classes. Scaleway is used at the provider in this scenario.
Go to file
Theodotos Andreou 12dc10f0ac Corrected the source path 2018-10-20 13:21:51 +03:00
.gitignore Initial Commit 2018-07-20 00:33:51 -07:00
LICENSE Initial Commit 2018-07-20 00:33:51 -07:00
README.md Corrected the source path 2018-10-20 13:21:51 +03:00
lpi.tf Initial Commit 2018-07-20 00:33:51 -07:00
terraform.tfvars.example Initial Commit 2018-07-20 00:33:51 -07:00
variables.tf Changed default region and type 2018-08-27 10:50:56 -07:00

README.md

Terraform setup for scaleway

This is a teraform setup for my LPI Labs. The servers are deployed in Scaleway.

Prerequisites

  • Install Terraform on your local host:
$ wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip
$ unzip terraform_0.11.7_linux_amd64.zip
$ sudo cp terraform /usr/local/bin

Instructions

  • Get the repo
$ git clone https://git.theo-andreou.org/Personal/lpi-deploy-scaleway.git
$ cd lpi-deploy-scaleway
  • Copy the terraform.tfvars.example to terraform.tfvars and setup your settings:
organization = "11223344-1122-1122-1122-112233445566"
token        = "99887766-9988-9988-9988-998877665544"

server_name = {
  "debian" = "lpi-deb"
  "centos" = "lpi-centos"
}

images = {
  "debian" = "0f805370-5622-40df-af56-ac4fcf554b77"
  "centos" = "d8c6f7b6-d1d1-47af-aa45-443989644b26"
}
  • Initialize your Terraform environment:
$ terraform init
  • Create a Terraform plan:
$ terraform plan -out lpi.plan
  • Apply the plan:
$ terraform apply "lpi.plan"

References