README.md 762 Bytes
Newer Older
Ryan Randles Jones's avatar
Ryan Randles Jones committed
1
# Terraform Openstack
Ryan Randles Jones's avatar
Ryan Randles Jones committed
2

Ryan Randles Jones's avatar
Ryan Randles Jones committed
3
4
5
6
Right now, this will create:

dmznet and dmzsubnet

Ryan Randles Jones's avatar
Ryan Randles Jones committed
7
borderrouter that connects dmznet to bright-external-flat-externalnet
Ryan Randles Jones's avatar
Ryan Randles Jones committed
8
9
10

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

Ryan Randles Jones's avatar
Ryan Randles Jones committed
11
Make a new directory for Terraform:
Ryan Randles Jones's avatar
Ryan Randles Jones committed
12

Ryan Randles Jones's avatar
Ryan Randles Jones committed
13
`$mkdir terraform-first-instance`
Ryan Randles Jones's avatar
Ryan Randles Jones committed
14

Ryan Randles Jones's avatar
Ryan Randles Jones committed
15
Install Terraform:
Ryan Randles Jones's avatar
Ryan Randles Jones committed
16

Ryan Randles Jones's avatar
Ryan Randles Jones committed
17
`$brew install terraform`
Ryan Randles Jones's avatar
Ryan Randles Jones committed
18
19

Unzip the file and make a path to your new directory:
Ryan Randles Jones's avatar
Ryan Randles Jones committed
20

Ryan Randles Jones's avatar
Ryan Randles Jones committed
21
22
`$export TERRAFORM_DIR="$(pwd)/terraform-first-instance"`

Ryan Randles Jones's avatar
Ryan Randles Jones committed
23
`$cp $HOME/Downloads/terraform_0.6.16_linux_amd64/terraform $TERRAFORM_DIR`
Ryan Randles Jones's avatar
Ryan Randles Jones committed
24
25

Clone this repo into your terraform-first-instance directory:
Ryan Randles Jones's avatar
Ryan Randles Jones committed
26

Ryan Randles Jones's avatar
Ryan Randles Jones committed
27
`$git clone https://gitlab.rc.uab.edu/rrand11/terraform-openstack.git`
Ryan Randles Jones's avatar
Ryan Randles Jones committed
28
29
30

`$cd terraform-openstack`

Ryan Randles Jones's avatar
Ryan Randles Jones committed
31
`$source OPENRCFILENAME`
Ryan Randles Jones's avatar
Ryan Randles Jones committed
32

Ryan Randles Jones's avatar
Ryan Randles Jones committed
33
34
35
36
37
`$terraform init`

`$terraform plan`

`$terraform apply`