Skip to content

Latest commit

 

History

History
67 lines (38 loc) · 855 Bytes

terraform_example_deployment.md

File metadata and controls

67 lines (38 loc) · 855 Bytes

Terraform : Openstack Infra:

we will explain the complex infra deployment in openstack using Terraform.

We use ubuntu 16.04 image and flavor 2 for this deployment.

Infrastructure Diagram

Terraform files:

vars.tf

stack.tf

cloudinit.yaml

keys

Deployment:

  1. create a directory and place the files.
mkdir infra1
cd infra1
cp /home/suresh/learn-terraform-with-openstack/deployment/* .
  1. Execute terraform init & plan
terraform init
terraform plan
  1. Apply your infra
terraform apply
  1. verify your infra

Check with openstack commands, or horizon dashboard

  1. Check the terraform resources
terraform show

Testing:

  1. SSH to the instances
  2. web requests to the server