mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Rename "tf-general" directory to "openstack" since it only discusses OpenStack. Update README.md. Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org> |
||
|---|---|---|
| .. | ||
| tf-example | ||
| tf-json-example | ||
| README.md | ||
Using Terraform with OpenStack
These files were created to allow users to use an example Terraform (http://terraform.io) configuration with OpenStack. These files require a working Terraform installation and a working OpenStack environment.
Contents
-
README.md: This file you're currently reading.
-
tf-example: This directory contains an example Terraform configuration written in Terraform format.
-
tf-json-example: This directory contains an example Terraform configuration written in JSON format.
Instructions
These instructions assume you've already installed Terraform. These instructions also assume that you have a working OpenStack environment against which to run the Terraform configurations.
- Edit
provider.tforprovider.tf.jsonwith the correct username, tenant, password, and authentication URL for your OpenStack environment. - Edit
vars.tforvars.tf.jsonto provide the correct values for image name, flavor, external network (for the logical router), SSH key pair, and floating IP pool. - From either the
tf-exampleortf-json-exampledirectory, runterraform planto see what changes will be made. - If you are happy with the output of #3, run
terraform apply.
Enjoy!
License
This material is licensed under the MIT License.