From f793205c73a006734b84c708f49049a1067f6b6a Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Fri, 1 Dec 2017 15:13:33 -0500 Subject: 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 Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-keystone/admin-openrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-keystone/admin-openrc (limited to 'meta-openstack/recipes-devtools/python/python-keystone/admin-openrc') 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 @@ +# +# Matches bootstrap data in keystone-init +# +export OS_PROJECT_DOMAIN_NAME=Default +export OS_USER_DOMAIN_NAME=Default +export OS_PROJECT_NAME=admin +export OS_USERNAME=%ADMIN_USER% +export OS_PASSWORD=%ADMIN_PASSWORD% +export OS_AUTH_URL=http://%CONTROLLER_IP%:35357/v3 +export OS_IDENTITY_API_VERSION=3 +export OS_IMAGE_API_VERSION=2 +export OS_REGION_NAME=RegionOne -- cgit v1.2.3-54-g00ecf