Skip to content

Commit

Permalink
Update README.md with minor fixes/clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Leske authored Feb 24, 2018
1 parent 66bd570 commit b6698e6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions contrib/terraform/openstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ Create an inventory directory for your cluster by copying the existing sample an

```ShellSession
$ cp -LRp contrib/terraform/openstack/sample-inventory inventory/$CLUSTER
$ ln -s contrib/terraform/openstack/hosts inventory/$CLUSTER/
$ cd inventory/$CLUSTER
$ ln -s ../../contrib/terraform/openstack/hosts
```

This will be the base for subsequent Terraform commands.
Expand Down Expand Up @@ -138,7 +138,8 @@ export OS_CLOUD=mycloud
##### Openrc method (deprecated)

When using classic environment variables, Terraform uses default `OS_*`
environment variables:
environment variables. A script suitable for your environment may be available
from Horizon under *Project* -> *Compute* -> *Access & Security* -> *API Access*.

With identity v2:

Expand All @@ -157,7 +158,7 @@ OS_INTERFACE=public
OS_IDENTITY_API_VERSION=2
```

With identity v3 :
With identity v3:

```
source openrc
Expand Down Expand Up @@ -238,7 +239,7 @@ plugins. This is accomplished as follows:

```ShellSession
$ cd inventory/$CLUSTER
$ terraform init contrib/terraform/openstack
$ terraform init ../../contrib/terraform/openstack
```

This should finish fairly quickly telling you Terraform has successfully initialized and loaded necessary modules.
Expand All @@ -264,6 +265,11 @@ You can destroy your new cluster with the following command issued from the clus
$ terraform destroy -var-file=cluster.tf ../../contrib/terraform/openstack
```

If you've started the Ansible run, it may also be a good idea to do some manual cleanup:

* remove SSH keys from the destroyed cluster from your `~/.ssh/known_hosts` file
* clean up any temporary cache files: `rm /tmp/$CLUSTER-*`

### Debugging
You can enable debugging output from Terraform by setting
`OS_DEBUG` to 1 and`TF_LOG` to`DEBUG` before running the Terraform command.
Expand Down

0 comments on commit b6698e6

Please sign in to comment.