From e993ac074388eba8ebc96afbe5ae0e3a702921e2 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 2 Oct 2013 13:53:49 -0400 Subject: keystone: use external IP address versus localhost To make keystone work properly in a node with "real" IP addresses, both the configuration and identity setup script should use the external address and not localhost. Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-keystone_2013.1.3.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb') diff --git a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb index bc30333..e124583 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb @@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "e097170ebb1cf22de50f2d5ab2216a5116ffe0934720dbad8b02d61c37 S = "${WORKDIR}/${SRCNAME}-${PV}" -inherit setuptools update-rc.d identity +inherit setuptools update-rc.d identity hosts SERVICE_TOKEN = "password" @@ -33,6 +33,11 @@ do_install_append() { sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/keystone.conf sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/keystone.conf + sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/keystone.conf + sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/identity.sh + + install -d ${D}${localstatedir}/log/${SRCNAME} + install -m 600 ${WORKDIR}/keystone.conf ${KEYSTONE_CONF_DIR}/ install -m 600 ${WORKDIR}/identity.sh ${KEYSTONE_CONF_DIR}/ install -m 600 ${WORKDIR}/openrc ${KEYSTONE_CONF_DIR}/ @@ -82,7 +87,9 @@ FILES_${PN} = "${libdir}/*" FILES_${SRCNAME} = "${bindir}/* \ ${sysconfdir}/${SRCNAME}/* \ - ${sysconfdir}/init.d/* " + ${sysconfdir}/init.d/* \ + ${localstatedir}/* \ + " RDEPENDS_${PN} += "python-pam \ python-webob \ -- cgit v1.2.3-54-g00ecf