From 37cc0a34722fe53b8b532694ac686bbb995fe665 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Tue, 18 Mar 2014 21:01:03 -0400 Subject: glance: make default_store configurable The "default_store" option in /etc/glance/glance-api.conf controls how glance store images. Make this option configurable through variable GLANCE_DEFAULT_STORE. Signed-off-by: Vu Tran --- meta-openstack/recipes-devtools/python/python-glance_git.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-glance_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb index 3ccb860..41d6046 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_git.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb @@ -18,6 +18,8 @@ S = "${WORKDIR}/git" inherit setuptools update-rc.d identity default_configs +GLANCE_DEFAULT_STORE ?= "file" + do_install_append() { TEMPLATE_CONF_DIR=${S}${sysconfdir} GLANCE_CONF_DIR=${D}${sysconfdir}/glance @@ -61,6 +63,8 @@ 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