From 9483378e842c07245ea1a478461621a3930b6c58 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Mon, 15 Jul 2013 13:49:06 +0300 Subject: 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 --- meta-openstack/classes/identity.bbclass | 3 +++ meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 meta-openstack/classes/identity.bbclass diff --git a/meta-openstack/classes/identity.bbclass b/meta-openstack/classes/identity.bbclass new file mode 100644 index 0000000..07c8efc --- /dev/null +++ b/meta-openstack/classes/identity.bbclass @@ -0,0 +1,3 @@ +SERVICE_TOKEN = "password" +SERVICE_PASSWORD = "password" +SERVICE_TENANT_NAME = "service" 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 S = "${WORKDIR}/${SRCNAME}-${PV}" -inherit setuptools update-rc.d +inherit setuptools update-rc.d identity SERVICE_TOKEN = "password" @@ -68,7 +68,9 @@ pkg_postinst_${SRCNAME} () { #Create users, services and endpoints /etc/init.d/keystone start sleep 0.25 - bash /etc/keystone/identity.sh + SERVICE_PASSWORD=${SERVICE_PASSWORD} \ + SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME} \ + bash /etc/keystone/identity.sh } PACKAGES += " ${SRCNAME}" -- cgit v1.2.3-54-g00ecf