Skip to content
Snippets Groups Projects
Forked from rc / Terraform Openstack
518 commits behind the upstream repository.
README.md 1005 B

Terraform Openstack

Right now, this will create:

dmznet and dmzsubnet

borderrouter that connects dmznet to bright-external-flat-externalnet

a floating ip address, and an instance coming off of dmznet

Make a new directory for Terraform:

$mkdir terraform-first-instance

Install Terraform:

$brew install terraform

Unzip the file and make a path to your new directory:

$export TERRAFORM_DIR="$(pwd)/terraform-first-instance"

$cp $HOME/Downloads/terraform_0.6.16_linux_amd64/terraform $TERRAFORM_DIR

Clone this repo into your terraform-first-instance directory:

$git clone https://gitlab.rc.uab.edu/rrand11/terraform-openstack.git

$source OPENRCFILENAME

$cd terraform-openstack

$terraform init

$terraform plan -out $HOME/terraform-first-instance/terraform-plan.tf

#terraform plan -out writes the plan to a file and then terraform apply runs that plan

$terraform apply "$HOME/terraform-first-instance/terraform-plan.tf"

Destroy Terraform Instance

$terraform destroy