Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
datasources.tf
main.tf
openrc.sample
outputs.tf
variables.tf

README.md

Basic OpenStack architecture with networking

This provides a template for running a simple architecture on an OpenStack cloud.

To simplify the example, this intentionally ignores deploying and getting your application onto the servers. However, you could do so either via provisioners and a configuration management tool, or by pre-baking configured images with Packer.

After you run terraform apply on this configuration, it will output the floating IP address assigned to the instance. After your instance started, this should respond with the default nginx web page.

First set the required environment variables for the OpenStack provider by sourcing the credentials file.

source openrc

Afterwards run with a command like this:

terraform apply \
  -var 'pool=public'

To get a list of usable floating IP pools run this command, and the UUID of the external gateway is in the following ID column:

$ openstack network list --external
+--------------------------------------+--------+----------------------------------------------------------------------------+
| ID                                   | Name   | Subnets                                                                    |
+--------------------------------------+--------+----------------------------------------------------------------------------+
| fd21df30-693b-496a-ac69-8637b9c24cd3 | public | a2d7c467-44f9-43c5-b387-8a6742f45b5c, ee51200c-9b64-4977-ad30-622039d7bba1 |
+--------------------------------------+--------+----------------------------------------------------------------------------+
You can’t perform that action at this time.