diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-swift_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-swift_git.bb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-swift_git.bb b/meta-openstack/recipes-devtools/python/python-swift_git.bb index 7bab0bd..16f99f7 100644 --- a/meta-openstack/recipes-devtools/python/python-swift_git.bb +++ b/meta-openstack/recipes-devtools/python/python-swift_git.bb | |||
| @@ -29,6 +29,25 @@ inherit setuptools python-dir update-rc.d hosts identity | |||
| 29 | # filesystem of must support xattrs. e.g ext4 | 29 | # filesystem of must support xattrs. e.g ext4 |
| 30 | SWIFT_BACKING_FILE_SIZE ?= "2G" | 30 | SWIFT_BACKING_FILE_SIZE ?= "2G" |
| 31 | 31 | ||
| 32 | SERVICECREATE_PACKAGES = "${SRCNAME}-setup" | ||
| 33 | KEYSTONE_HOST="${CONTROLLER_IP}" | ||
| 34 | |||
| 35 | # USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set. | ||
| 36 | # If the flag for a parameter in the list is not set here, the default value will be given to that parameter. | ||
| 37 | # Parameters not in the list will be set to empty. | ||
| 38 | |||
| 39 | USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email" | ||
| 40 | SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl" | ||
| 41 | python () { | ||
| 42 | flags = {'type':'object-store',\ | ||
| 43 | 'description':'OpenStack object-store',\ | ||
| 44 | 'publicurl':"'http://${KEYSTONE_HOST}:8888/v1/AUTH_\$(tenant_id)s'",\ | ||
| 45 | 'adminurl':"'http://${KEYSTONE_HOST}:8888/v1'",\ | ||
| 46 | 'internalurl':"'http://${KEYSTONE_HOST}:8888/v1/AUTH_\$(tenant_id)s'"} | ||
| 47 | |||
| 48 | d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags) | ||
| 49 | } | ||
| 50 | |||
| 32 | do_install_append() { | 51 | do_install_append() { |
| 33 | SWIFT_CONF_DIR=${D}${sysconfdir}/swift | 52 | SWIFT_CONF_DIR=${D}${sysconfdir}/swift |
| 34 | 53 | ||
