From 49f5cf2454fdd702edbc0cb1f7c767f273d3de31 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Wed, 9 Apr 2014 19:59:24 -0400 Subject: glance: enable swift backend Modify glance config file to allow it to be able to use Swift as backend driver. Signed-off-by: Vu Tran --- meta-openstack/recipes-devtools/python/python-glance_git.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb index 5bc3c68..d2f5f21 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_git.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb @@ -41,6 +41,12 @@ do_install_append() { sed -e "s:^notifier_strategy = noop:notifier_strategy = rabbit:g" \ -i ${WORKDIR}/glance-api.conf + sed 's:^default_store =.*:default_store = ${GLANCE_DEFAULT_STORE}:g' -i ${WORKDIR}/glance-api.conf + sed 's:^swift_store_auth_address =.*:swift_store_auth_address = http\://127.0.0.1\:5000/v2.0/:g' -i ${WORKDIR}/glance-api.conf + sed 's:^swift_store_user =.*:swift_store_user = ${SERVICE_TENANT_NAME}\:${SRCNAME}:g' -i ${WORKDIR}/glance-api.conf + sed 's:^swift_store_key =.*:swift_store_key = ${SERVICE_PASSWORD}:g' -i ${WORKDIR}/glance-api.conf + sed 's:^swift_store_create_container_on_put =.*:swift_store_create_container_on_put = True:g' -i ${WORKDIR}/glance-api.conf + install -d ${GLANCE_CONF_DIR} install -m 600 ${WORKDIR}/glance-registry.conf ${GLANCE_CONF_DIR}/ install -m 600 ${WORKDIR}/glance-api.conf ${GLANCE_CONF_DIR}/ @@ -63,8 +69,6 @@ do_install_append() { install -m 0755 ${WORKDIR}/glance-registry.init.sh ${D}${sysconfdir}/init.d/glance-registry fi - sed 's:^default_store =.*:default_store = ${GLANCE_DEFAULT_STORE}:g' -i ${WORKDIR}/glance-api.conf - cp run_tests.sh ${GLANCE_CONF_DIR} } -- cgit v1.2.3-54-g00ecf