blob: 0b090c77b7fa2d06ef0af18d1cd31fdc2c0f438c [file] [log] [blame]
Dean Troyer0986a7b2014-10-29 22:08:13 -05001=====================================
2openrc - User Authentication Settings
3=====================================
Sean M. Collins09e550c2014-10-21 11:40:08 -04004
5``openrc`` configures login credentials suitable for use with the
6OpenStack command-line tools. ``openrc`` sources ``stackrc`` at the
saradpatel933827c2014-12-19 12:09:05 +00007beginning (which in turn sources the ``localrc`` section of
Sean M. Collins09e550c2014-10-21 11:40:08 -04008``local.conf``) in order to pick up ``HOST_IP`` and/or ``SERVICE_HOST``
9to use in the endpoints. The values shown below are the default values.
10
Dean Troyerea3cdfa2014-11-08 08:29:16 -060011OS\_PROJECT\_NAME (OS\_TENANT\_NAME)
12 Keystone has
13 standardized the term *project* as the entity that owns resources. In
14 some places references still exist to the previous term
15 *tenant* for this use. Also, *project\_name* is preferred to
16 *project\_id*. OS\_TENANT\_NAME remains supported for compatibility
17 with older tools.
Sean M. Collins09e550c2014-10-21 11:40:08 -040018
19 ::
20
Dean Troyerea3cdfa2014-11-08 08:29:16 -060021 OS_PROJECT_NAME=demo
Sean M. Collins09e550c2014-10-21 11:40:08 -040022
23OS\_USERNAME
Dean Troyerea3cdfa2014-11-08 08:29:16 -060024 In addition to the owning entity (project), OpenStack calls the entity
25 performing the action *user*.
Sean M. Collins09e550c2014-10-21 11:40:08 -040026
27 ::
28
29 OS_USERNAME=demo
30
31OS\_PASSWORD
Dean Troyerea3cdfa2014-11-08 08:29:16 -060032 Keystone's default authentication requires a password be provided.
33 The usual cautions about putting passwords in environment variables
34 apply, for most DevStack uses this may be an acceptable tradeoff.
Sean M. Collins09e550c2014-10-21 11:40:08 -040035
36 ::
37
38 OS_PASSWORD=secrete
39
40HOST\_IP, SERVICE\_HOST
41 Set API endpoint host using ``HOST_IP``. ``SERVICE_HOST`` may also
42 be used to specify the endpoint, which is convenient for some
Dean Troyerea3cdfa2014-11-08 08:29:16 -060043 ``local.conf`` configurations. Typically, ``HOST_IP`` is set in the
Sean M. Collins09e550c2014-10-21 11:40:08 -040044 ``localrc`` section.
45
46 ::
47
48 HOST_IP=127.0.0.1
49 SERVICE_HOST=$HOST_IP
50
51OS\_AUTH\_URL
52 Authenticating against an OpenStack cloud using Keystone returns a
53 *Token* and *Service Catalog*. The catalog contains the endpoints
54 for all services the user/tenant has access to - including Nova,
55 Glance, Keystone and Swift.
56
57 ::
58
59 OS_AUTH_URL=http://$SERVICE_HOST:5000/v2.0
60
Sean M. Collins09e550c2014-10-21 11:40:08 -040061KEYSTONECLIENT\_DEBUG, NOVACLIENT\_DEBUG
62 Set command-line client log level to ``DEBUG``. These are commented
63 out by default.
64
65 ::
66
67 # export KEYSTONECLIENT_DEBUG=1
68 # export NOVACLIENT_DEBUG=1