diff options
| author | Mihai Prica <prica.mihai@gmail.com> | 2013-07-15 13:49:06 +0300 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:58 -0400 |
| commit | 9483378e842c07245ea1a478461621a3930b6c58 (patch) | |
| tree | 5c5bf8c5226f6249ea1a463f0618917a1f94cd11 /meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb | |
| parent | 0fd65f9e27ec189a0e180987a76f2565bf73df41 (diff) | |
| download | meta-cloud-services-9483378e842c07245ea1a478461621a3930b6c58.tar.gz | |
identity.bbclass: Added new class
Each service(nova, glance, cinder...) has its own keystone user.
These users are created in a postinstall for the keystone package.
This new class is used to store some of the credentials used by
keystone and all packages will inherit this class and create
the appropriate configuration files.
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb index fc4b3a0..d6ad46d 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb | |||
| @@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "34347a3242a40d93b98c3722e6f3fbc112bc1c9ef20c045c3d40637e45 | |||
| 19 | 19 | ||
| 20 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 20 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 21 | 21 | ||
| 22 | inherit setuptools update-rc.d | 22 | inherit setuptools update-rc.d identity |
| 23 | 23 | ||
| 24 | SERVICE_TOKEN = "password" | 24 | SERVICE_TOKEN = "password" |
| 25 | 25 | ||
| @@ -68,7 +68,9 @@ pkg_postinst_${SRCNAME} () { | |||
| 68 | #Create users, services and endpoints | 68 | #Create users, services and endpoints |
| 69 | /etc/init.d/keystone start | 69 | /etc/init.d/keystone start |
| 70 | sleep 0.25 | 70 | sleep 0.25 |
| 71 | bash /etc/keystone/identity.sh | 71 | SERVICE_PASSWORD=${SERVICE_PASSWORD} \ |
| 72 | SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME} \ | ||
| 73 | bash /etc/keystone/identity.sh | ||
| 72 | } | 74 | } |
| 73 | 75 | ||
| 74 | PACKAGES += " ${SRCNAME}" | 76 | PACKAGES += " ${SRCNAME}" |
