summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder_git.bb
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-04-09 19:59:24 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-04-11 14:15:28 -0400
commit998b51ee74330db79c27e437b224b0485c64c566 (patch)
tree4b0ad0f2828088d2918037ea2414e2982295fdbb /meta-openstack/recipes-devtools/python/python-cinder_git.bb
parenta403d7493d31578626f0df88c800c9fb734b0ed9 (diff)
downloadmeta-cloud-services-998b51ee74330db79c27e437b224b0485c64c566.tar.gz
cinder-backup: enable swift backend
Modify cinder config file allows cinder-backup to be able to use swift as backend for storing cinder backup volume on Swift cluster. Also add variable CINDER_BACKUP_BACKEND_DRIVER which allows setting default cinder backup backend driver. Right now set it to Swift. Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_git.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
index 28b0f74..237377d 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
@@ -25,6 +25,8 @@ S = "${WORKDIR}/git"
25 25
26inherit setuptools update-rc.d identity default_configs 26inherit setuptools update-rc.d identity default_configs
27 27
28CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift"
29
28do_install_append() { 30do_install_append() {
29 TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} 31 TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME}
30 CINDER_CONF_DIR=${D}${sysconfdir}/${SRCNAME} 32 CINDER_CONF_DIR=${D}${sysconfdir}/${SRCNAME}
@@ -37,6 +39,7 @@ do_install_append() {
37 39
38 sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/cinder.conf 40 sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/cinder.conf
39 sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/cinder.conf 41 sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/cinder.conf
42 sed -e "s:%CINDER_BACKUP_BACKEND_DRIVER%:${CINDER_BACKUP_BACKEND_DRIVER}:g" -i ${WORKDIR}/cinder.conf
40 43
41 install -d ${CINDER_CONF_DIR} 44 install -d ${CINDER_CONF_DIR}
42 install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ 45 install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/