summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-swift_git.bb
diff options
context:
space:
mode:
authorAndy Ning <andy.ning@windriver.com>2014-07-16 11:37:37 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-07-31 15:15:31 -0400
commitbe2e56c0bbd019e450beca62f1cad13cf5fe37e4 (patch)
tree7cbf2f17513a79242709706558af68682100bc00 /meta-openstack/recipes-devtools/python/python-swift_git.bb
parentf300718c549178e924699d4b8de7f98a7bad6375 (diff)
downloadmeta-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-swift_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-swift_git.bb19
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 19c056f..43ba8dd 100644
--- a/meta-openstack/recipes-devtools/python/python-swift_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-swift_git.bb
@@ -30,6 +30,25 @@ inherit setuptools python-dir update-rc.d hosts identity
30# filesystem of must support xattrs. e.g ext4 30# filesystem of must support xattrs. e.g ext4
31SWIFT_BACKING_FILE_SIZE ?= "2G" 31SWIFT_BACKING_FILE_SIZE ?= "2G"
32 32
33SERVICECREATE_PACKAGES = "${SRCNAME}-setup"
34KEYSTONE_HOST="${CONTROLLER_IP}"
35
36# USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set.
37# If the flag for a parameter in the list is not set here, the default value will be given to that parameter.
38# Parameters not in the list will be set to empty.
39
40USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email"
41SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl"
42python () {
43 flags = {'type':'object-store',\
44 'description':'OpenStack object-store',\
45 'publicurl':"'http://${KEYSTONE_HOST}:8888/v1/AUTH_\$(tenant_id)s'",\
46 'adminurl':"'http://${KEYSTONE_HOST}:8888/v1'",\
47 'internalurl':"'http://${KEYSTONE_HOST}:8888/v1/AUTH_\$(tenant_id)s'"}
48
49 d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags)
50}
51
33do_install_append() { 52do_install_append() {
34 SWIFT_CONF_DIR=${D}${sysconfdir}/swift 53 SWIFT_CONF_DIR=${D}${sysconfdir}/swift
35 54