You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6e70139
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: doc/source/man/openstack.rst
+97-2Lines changed: 97 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
OpenStack Command Line
6
6
7
+
7
8
SYNOPSIS
8
9
========
9
10
@@ -57,8 +58,15 @@ OPTIONS
57
58
58
59
:program:`openstack` recognizes the following global options:
59
60
60
-
:option:`--os-auth-plugin` <auth-plugin>
61
-
The authentication plugin to use when connecting to the Identity service. If this option is not set, :program:`openstack` will attempt to guess the authentication method to use based on the other options.
61
+
:option:`--os-cloud` <cloud-name>
62
+
:program:`openstack` will look for a ``clouds.yaml`` file that contains
63
+
a cloud configuration to use for authentication. See CLOUD CONFIGURATION
64
+
below for more information.
65
+
66
+
:option:`--os-auth-type` <auth-type>
67
+
The authentication plugin type to use when connecting to the Identity service.
68
+
If this option is not set, :program:`openstack` will attempt to guess the
69
+
authentication method to use based on the other options.
62
70
If this option is set, its version must match :option:`--os-identity-api-version`
63
71
64
72
:option:`--os-auth-url` <auth-url>
@@ -156,6 +164,81 @@ Command Actions
156
164
157
165
The actions used by OpenStackClient are defined with specific meaning to provide a consistent behavior for each object. Some actions have logical opposite actions, and those pairs will always match for any object that uses them.
158
166
167
+
168
+
CLOUD CONFIGURATION
169
+
===================
170
+
171
+
Working with multiple clouds can be simplified by keeping the configuration
172
+
information for those clouds in a local file. :program:`openstack` supports
173
+
using a ``clouds.yaml`` configuration file.
174
+
175
+
Config Files
176
+
------------
177
+
178
+
:program:`openstack` will look for a file called clouds.yaml in the following
179
+
locations:
180
+
181
+
* Current Directory
182
+
* ~/.config/openstack
183
+
* /etc/openstack
184
+
185
+
The first file found wins.
186
+
187
+
The keys match the :program:`openstack` global options but without the
188
+
``--os-`` prefix:
189
+
190
+
::
191
+
192
+
clouds:
193
+
devstack:
194
+
auth:
195
+
auth_url: http://192.168.122.10:35357/
196
+
project_name: demo
197
+
username: demo
198
+
password: 0penstack
199
+
region_name: RegionOne
200
+
ds-admin:
201
+
auth:
202
+
auth_url: http://192.168.122.10:35357/
203
+
project_name: admin
204
+
username: admin
205
+
password: 0penstack
206
+
region_name: RegionOne
207
+
infra:
208
+
cloud: rackspace
209
+
auth:
210
+
project_id: 275610
211
+
username: openstack
212
+
password: xyzpdq!lazydog
213
+
region_name: DFW,ORD,IAD
214
+
215
+
In the above example, the ``auth_url`` for the ``rackspace`` cloud is taken
OpenStackClient uses the Keystone authentication plugins so the required
229
+
auth settings are not always known until the authentication type is
230
+
selected. :program:`openstack` will attempt to detect a couple of common
231
+
auth types based on the arguments passed in or found in the configuration
232
+
file, but if those are incomplete it may be impossible to know which
233
+
auth type is intended. The :option:`--os-auth-type` option can always be
234
+
used to force a specific type.
235
+
236
+
When :option:`--os-token` and :option:`--os-url` are both present the
237
+
``token_endpoint`` auth type is selected automatically. If
238
+
:option:`--os-auth-url` and :option:`--os-username` are present ``password``
239
+
auth type is selected.
240
+
241
+
159
242
NOTES
160
243
=====
161
244
@@ -192,6 +275,15 @@ Create a new image::
192
275
FILES
193
276
=====
194
277
278
+
:file:`~/.config/openstack/clouds.yaml`
279
+
Configuration file used by the :option:`--os-cloud` global option.
280
+
281
+
:file:`~/.config/openstack/clouds-public.yaml`
282
+
Configuration file containing public cloud provider information such as
283
+
authentication URLs and service definitions. The contents of this file
284
+
should be public and sharable. ``clouds.yaml`` may contain references
285
+
to clouds defined here as shortcuts.
286
+
195
287
:file:`~/.openstack`
196
288
Placeholder for future local state directory. This directory is intended to be shared among multiple OpenStack-related applications; contents are namespaced with an identifier for the app that owns it. Shared contents (such as :file:`~/.openstack/cache`) have no prefix and the contents must be portable.
197
289
@@ -201,6 +293,9 @@ ENVIRONMENT VARIABLES
201
293
202
294
The following environment variables can be set to alter the behaviour of :program:`openstack`. Most of them have corresponding command-line options that take precedence if set.
203
295
296
+
:envvar:`OS_CLOUD`
297
+
The name of a cloud configuration in ``clouds.yaml``.
298
+
204
299
:envvar:`OS_AUTH_PLUGIN`
205
300
The authentication plugin to use when connecting to the Identity service, its version must match the Identity API version
0 commit comments