summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
diff options
context:
space:
mode:
authorMihai Prica <prica.mihai@gmail.com>2013-07-15 13:50:33 +0300
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:41:58 -0400
commitf5e9ca889942455d8bfcbc49824dd475d547cd38 (patch)
tree4154c024c39fe5875e1d5d8ad0a8e66bf5dd30b4 /meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
parent9483378e842c07245ea1a478461621a3930b6c58 (diff)
downloadmeta-cloud-services-f5e9ca889942455d8bfcbc49824dd475d547cd38.tar.gz
python-cinder: Use the identity to get credentials
The credentials are defined in the identity bbclass and the recipe will set them in the configuration files. Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb15
1 files changed, 10 insertions, 5 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
index 90d712c..e3d2b7e 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb
@@ -9,7 +9,6 @@ SRCNAME = "cinder"
9 9
10SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ 10SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \
11 file://cinder.conf \ 11 file://cinder.conf \
12 file://api-paste.ini \
13 file://cinder.init \ 12 file://cinder.init \
14 " 13 "
15 14
@@ -18,17 +17,23 @@ SRC_URI[sha256sum] = "c4d7f508f404b555242abc638901a39b02d4345c2d101a0aaad52fec11
18 17
19S = "${WORKDIR}/${SRCNAME}-${PV}" 18S = "${WORKDIR}/${SRCNAME}-${PV}"
20 19
21inherit setuptools update-rc.d 20inherit setuptools update-rc.d identity
22 21
23do_install_append() { 22do_install_append() {
24 CINDER_CONF_DIR=${D}${sysconfdir}/cinder 23 TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME}
24 CINDER_CONF_DIR=${D}${sysconfdir}/${SRCNAME}
25 25
26 install -d ${CINDER_CONF_DIR} 26 sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \
27 ${TEMPLATE_CONF_DIR}/api-paste.ini > ${WORKDIR}/api-paste.ini
28 sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/api-paste.ini
29 sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \
30 -i ${WORKDIR}/api-paste.ini
27 31
32 install -d ${CINDER_CONF_DIR}
28 install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ 33 install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/
29 install -m 600 ${WORKDIR}/api-paste.ini ${CINDER_CONF_DIR}/ 34 install -m 600 ${WORKDIR}/api-paste.ini ${CINDER_CONF_DIR}/
30 install -m 600 ${S}/etc/cinder/policy.json ${CINDER_CONF_DIR}/ 35 install -m 600 ${S}/etc/cinder/policy.json ${CINDER_CONF_DIR}/
31 36
32 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 37 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
33 install -d ${D}${sysconfdir}/init.d 38 install -d ${D}${sysconfdir}/init.d
34 sed 's:@suffix@:api:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-api.init.sh 39 sed 's:@suffix@:api:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-api.init.sh