we will explain the complex infra deployment in openstack using Terraform.
We use ubuntu 16.04 image and flavor 2 for this deployment.
vars.tf
stack.tf
cloudinit.yaml
keys
- create a directory and place the files.
mkdir infra1
cd infra1
cp /home/suresh/learn-terraform-with-openstack/deployment/* .
- Execute terraform init & plan
terraform init
terraform plan
- Apply your infra
terraform apply
- verify your infra
Check with openstack commands, or horizon dashboard
- Check the terraform resources
terraform show
- SSH to the instances
- web requests to the server