diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_git.bb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index 4e0be66..0a06e33 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb | |||
| @@ -24,10 +24,29 @@ SRCREV="116f54dbf188a17b5e3dd966658e98bf19b8912b" | |||
| 24 | PV="2014.2.b1+git${SRCPV}" | 24 | PV="2014.2.b1+git${SRCPV}" |
| 25 | S = "${WORKDIR}/git" | 25 | S = "${WORKDIR}/git" |
| 26 | 26 | ||
| 27 | inherit setuptools update-rc.d identity default_configs | 27 | inherit setuptools update-rc.d identity default_configs hosts |
| 28 | 28 | ||
| 29 | CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift" | 29 | CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift" |
| 30 | 30 | ||
| 31 | SERVICECREATE_PACKAGES = "${SRCNAME}-setup" | ||
| 32 | KEYSTONE_HOST="${CONTROLLER_IP}" | ||
| 33 | |||
| 34 | # USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set. | ||
| 35 | # If the flag for a parameter in the list is not set here, the default value will be given to that parameter. | ||
| 36 | # Parameters not in the list will be set to empty. | ||
| 37 | |||
| 38 | USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email" | ||
| 39 | SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl" | ||
| 40 | python () { | ||
| 41 | flags = {'type':'volume',\ | ||
| 42 | 'description':'OpenStack Volume Service',\ | ||
| 43 | 'publicurl':"'http://${KEYSTONE_HOST}:8776/v1/\$(tenant_id)s'",\ | ||
| 44 | 'adminurl':"'http://${KEYSTONE_HOST}:8776/v1/\$(tenant_id)s'",\ | ||
| 45 | 'internalurl':"'http://${KEYSTONE_HOST}:8776/v1/\$(tenant_id)s'"} | ||
| 46 | |||
| 47 | d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags) | ||
| 48 | } | ||
| 49 | |||
| 31 | do_install_prepend() { | 50 | do_install_prepend() { |
| 32 | sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/conf_fixture.py | 51 | sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/conf_fixture.py |
| 33 | } | 52 | } |
