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.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.1KB

5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Terraform setup for scaleway
  2. This is a teraform setup for my LPI Labs. The servers are deployed in Scaleway.
  3. ## Prerequisites
  4. * Install *Terraform* on your local host:
  5. ```
  6. $ wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip
  7. $ unzip terraform_0.11.7_linux_amd64.zip
  8. $ sudo cp terraform /usr/local/bin
  9. ```
  10. ## Instructions
  11. * Get the repo
  12. ```
  13. $ git clone https://git.theo-andreou.org/Personal/lpi-deploy-scaleway.git
  14. $ cd lpi-deploy-scaleway
  15. ```
  16. * Copy the *terraform.tfvars.example* to *terraform.tfvars* and setup your settings:
  17. ```
  18. organization = "11223344-1122-1122-1122-112233445566"
  19. token = "99887766-9988-9988-9988-998877665544"
  20. server_name = {
  21. "debian" = "lpi-deb"
  22. "centos" = "lpi-centos"
  23. }
  24. images = {
  25. "debian" = "0f805370-5622-40df-af56-ac4fcf554b77"
  26. "centos" = "d8c6f7b6-d1d1-47af-aa45-443989644b26"
  27. }
  28. ```
  29. * Initialize your *Terraform* environment:
  30. ```
  31. $ terraform init
  32. ```
  33. * Create a *Terraform* plan:
  34. ```
  35. $ terraform plan -out lpi.plan
  36. ```
  37. * Apply the plan:
  38. ```
  39. $ terraform apply "lpi.plan"
  40. ```
  41. ## References
  42. * https://www.terraform.io/docs/providers/scaleway/index.html
  43. * https://scaleway.com