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
66bd5705
Unverified
Commit
66bd5705
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 and cleanup
parent
e2c5a389
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
+12
-11
12 additions, 11 deletions
contrib/terraform/openstack/README.md
with
12 additions
and
11 deletions
contrib/terraform/openstack/README.md
+
12
−
11
View file @
66bd5705
...
...
@@ -34,7 +34,7 @@ floating IP addresses or not.
Note that the Ansible script will report an invalid configuration if you wind up
with an even number of etcd instances since that is not a valid configuration.
### Gluster
FS
### GlusterFS
The Terraform configuration supports provisioning of an optional GlusterFS
shared file system based on a separate set of VMs. To enable this, you need to
specify:
...
...
@@ -95,18 +95,19 @@ This will be the base for subsequent Terraform commands.
#### OpenStack access and credentials
No provider variables are hardcoded inside
`variables.tf`
because Terraform
supports various authentication method for OpenStack, between identity v2 and
v3 API,
`openrc`
or
`clouds.yaml`
.
supports various authentication methods for OpenStack: the older script and
environment method (using
`openrc`
) as well as a newer declarative method, and
different OpenStack environments may support Identity API version 2 or 3.
These are examples and may vary depending on your OpenStack cloud provider,
for an exhaustive list on how to authenticate on OpenStack with Terraform
please read the
[
OpenStack provider documentation
](
https://www.terraform.io/docs/providers/openstack/
)
.
#####
R
ec
ommended method: clouds.yaml
#####
D
ec
larative method (recommended)
Newer
recommended authentication method is to
use a
`clouds.yaml`
file
that can be store in:
The
recommended authentication method is to
describe credentials in a YAML file
`clouds.yaml`
that can be store
d
in:
*
`C
urrent
D
irectory
`
*
the c
urrent
d
irectory
*
`~/.config/openstack`
*
`/etc/openstack`
...
...
@@ -128,18 +129,18 @@ clouds:
```
If you have multiple clouds defined in your
`clouds.yaml`
file you can choose
the one you want to use with the environment variable
`OS_CLOUD`
:
the one you want to use with the environment variable
`OS_CLOUD`
:
```
export OS_CLOUD=mycloud
```
#####
Deprecated method : openrc
#####
Openrc method (deprecated)
When using classic environment variables, Terraform uses default
`OS_*`
environment variables
:
environment variables:
With identity v2
:
With identity v2:
```
source openrc
...
...
@@ -176,7 +177,7 @@ OS_USER_DOMAIN_NAME=Default
```
Terraform does not support a mix of DomainName and DomainID, choose one or the
other
:
other:
```
* provider.openstack: You must provide exactly one of DomainID or DomainName to authenticate by Username
...
...
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