Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
b6698e68
Unverified
Commit
b6698e68
authored
7 years ago
by
Drew Leske
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md with minor fixes/clarifications
parent
66bd5705
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/terraform/openstack/README.md
+10
-4
10 additions, 4 deletions
contrib/terraform/openstack/README.md
with
10 additions
and
4 deletions
contrib/terraform/openstack/README.md
+
10
−
4
View file @
b6698e68
...
...
@@ -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.
...
...
@@ -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:
...
...
@@ -157,7 +158,7 @@ OS_INTERFACE=public
OS_IDENTITY_API_VERSION=2
```
With identity v3
:
With identity v3:
```
source openrc
...
...
@@ -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.
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment