diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2017-12-01 15:13:33 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-12-01 21:46:36 -0500 |
| commit | f793205c73a006734b84c708f49049a1067f6b6a (patch) | |
| tree | d351449740107908abc11ae6c563989fb7ec868f /meta-openstack/recipes-devtools/python/python-keystone/admin-openrc | |
| parent | ee1c631b92752742d89b311f4774d7017a946d54 (diff) | |
| download | meta-cloud-services-f793205c73a006734b84c708f49049a1067f6b6a.tar.gz | |
python-keystone: generate admin-openrc
In order to interact with the openstack CLI commands it is common
practice to source *openrc files which populate the environment with a
base set of values. See
https://docs.openstack.org/keystone/pike/install/keystone-openrc-obs.html
We used to do this as part of nova but it makes more sense to create
these as part of keystone. This makes them available early in the
setup process and also maps with the keystone bootstrapping.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone/admin-openrc')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone/admin-openrc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/admin-openrc b/meta-openstack/recipes-devtools/python/python-keystone/admin-openrc new file mode 100644 index 0000000..4b459d7 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-keystone/admin-openrc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # | ||
| 2 | # Matches bootstrap data in keystone-init | ||
| 3 | # | ||
| 4 | export OS_PROJECT_DOMAIN_NAME=Default | ||
| 5 | export OS_USER_DOMAIN_NAME=Default | ||
| 6 | export OS_PROJECT_NAME=admin | ||
| 7 | export OS_USERNAME=%ADMIN_USER% | ||
| 8 | export OS_PASSWORD=%ADMIN_PASSWORD% | ||
| 9 | export OS_AUTH_URL=http://%CONTROLLER_IP%:35357/v3 | ||
| 10 | export OS_IDENTITY_API_VERSION=3 | ||
| 11 | export OS_IMAGE_API_VERSION=2 | ||
| 12 | export OS_REGION_NAME=RegionOne | ||
