diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-02 13:53:49 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-03 01:16:44 -0400 |
| commit | e993ac074388eba8ebc96afbe5ae0e3a702921e2 (patch) | |
| tree | 477114ba4663512290d31733196d92bcac61dbd6 /meta-openstack | |
| parent | 3028c01846fac6e4ab9fe9ee24a04d64af076443 (diff) | |
| download | meta-cloud-services-e993ac074388eba8ebc96afbe5ae0e3a702921e2.tar.gz | |
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 <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone/identity.sh | 2 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/identity.sh b/meta-openstack/recipes-devtools/python/python-keystone/identity.sh index db222e1..df6fd1c 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone/identity.sh +++ b/meta-openstack/recipes-devtools/python/python-keystone/identity.sh | |||
| @@ -14,7 +14,7 @@ MYSQL_HOST=localhost | |||
| 14 | MYSQL_PASSWORD=password | 14 | MYSQL_PASSWORD=password |
| 15 | # | 15 | # |
| 16 | KEYSTONE_REGION=RegionOne | 16 | KEYSTONE_REGION=RegionOne |
| 17 | KEYSTONE_HOST=localhost | 17 | KEYSTONE_HOST=%CONTROLLER_IP% |
| 18 | 18 | ||
| 19 | # Shortcut function to get a newly generated ID | 19 | # Shortcut function to get a newly generated ID |
| 20 | function get_field() { | 20 | function get_field() { |
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 | |||
| 19 | 19 | ||
| 20 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 20 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 21 | 21 | ||
| 22 | inherit setuptools update-rc.d identity | 22 | inherit setuptools update-rc.d identity hosts |
| 23 | 23 | ||
| 24 | SERVICE_TOKEN = "password" | 24 | SERVICE_TOKEN = "password" |
| 25 | 25 | ||
| @@ -33,6 +33,11 @@ do_install_append() { | |||
| 33 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/keystone.conf | 33 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/keystone.conf |
| 34 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/keystone.conf | 34 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/keystone.conf |
| 35 | 35 | ||
| 36 | sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/keystone.conf | ||
| 37 | sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/identity.sh | ||
| 38 | |||
| 39 | install -d ${D}${localstatedir}/log/${SRCNAME} | ||
| 40 | |||
| 36 | install -m 600 ${WORKDIR}/keystone.conf ${KEYSTONE_CONF_DIR}/ | 41 | install -m 600 ${WORKDIR}/keystone.conf ${KEYSTONE_CONF_DIR}/ |
| 37 | install -m 600 ${WORKDIR}/identity.sh ${KEYSTONE_CONF_DIR}/ | 42 | install -m 600 ${WORKDIR}/identity.sh ${KEYSTONE_CONF_DIR}/ |
| 38 | install -m 600 ${WORKDIR}/openrc ${KEYSTONE_CONF_DIR}/ | 43 | install -m 600 ${WORKDIR}/openrc ${KEYSTONE_CONF_DIR}/ |
| @@ -82,7 +87,9 @@ FILES_${PN} = "${libdir}/*" | |||
| 82 | 87 | ||
| 83 | FILES_${SRCNAME} = "${bindir}/* \ | 88 | FILES_${SRCNAME} = "${bindir}/* \ |
| 84 | ${sysconfdir}/${SRCNAME}/* \ | 89 | ${sysconfdir}/${SRCNAME}/* \ |
| 85 | ${sysconfdir}/init.d/* " | 90 | ${sysconfdir}/init.d/* \ |
| 91 | ${localstatedir}/* \ | ||
| 92 | " | ||
| 86 | 93 | ||
| 87 | RDEPENDS_${PN} += "python-pam \ | 94 | RDEPENDS_${PN} += "python-pam \ |
| 88 | python-webob \ | 95 | python-webob \ |
