diff options
| author | Andy Ning <andy.ning@windriver.com> | 2014-07-16 11:37:37 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-31 15:15:31 -0400 |
| commit | be2e56c0bbd019e450beca62f1cad13cf5fe37e4 (patch) | |
| tree | 7cbf2f17513a79242709706558af68682100bc00 /meta-openstack/recipes-devtools/python/python-glance_git.bb | |
| parent | f300718c549178e924699d4b8de7f98a7bad6375 (diff) | |
| download | meta-cloud-services-be2e56c0bbd019e450beca62f1cad13cf5fe37e4.tar.gz | |
Keystone: package service/user additions
Instead of creating tenant/user/role and service/endpoint for all
openstack services in keystone postinstall, now each of the services
creates its own keystone identities by queueing them up in its postinstall
to a file /etc/keystone/service-user-setup. service-user-setup
script, when run as the last postinstall, calls identity.sh with keystone
identity parameters to create necessary identities for the services.
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-glance_git.bb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb index 57ad34c..1f94939 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_git.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb | |||
| @@ -17,10 +17,29 @@ PV="2013.2.3+git${SRCPV}" | |||
| 17 | 17 | ||
| 18 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
| 19 | 19 | ||
| 20 | inherit setuptools update-rc.d identity default_configs | 20 | inherit setuptools update-rc.d identity default_configs hosts |
| 21 | 21 | ||
| 22 | GLANCE_DEFAULT_STORE ?= "file" | 22 | GLANCE_DEFAULT_STORE ?= "file" |
| 23 | 23 | ||
| 24 | SERVICECREATE_PACKAGES = "${SRCNAME}-setup" | ||
| 25 | KEYSTONE_HOST="${CONTROLLER_IP}" | ||
| 26 | |||
| 27 | # USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set. | ||
| 28 | # If the flag for a parameter in the list is not set here, the default value will be given to that parameter. | ||
| 29 | # Parameters not in the list will be set to empty. | ||
| 30 | |||
| 31 | USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email" | ||
| 32 | SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl" | ||
| 33 | python () { | ||
| 34 | flags = {'type':'image',\ | ||
| 35 | 'description':'OpenStack Image Service',\ | ||
| 36 | 'publicurl':"'http://${KEYSTONE_HOST}:9292/v2'",\ | ||
| 37 | 'adminurl':"'http://${KEYSTONE_HOST}:9292/v2'",\ | ||
| 38 | 'internalurl':"'http://${KEYSTONE_HOST}:9292/v2'"} | ||
| 39 | |||
| 40 | d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags) | ||
| 41 | } | ||
| 42 | |||
| 24 | do_install_prepend() { | 43 | do_install_prepend() { |
| 25 | sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/functional/__init__.py | 44 | sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/functional/__init__.py |
| 26 | sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/unit/base.py | 45 | sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/unit/base.py |
