From 998b51ee74330db79c27e437b224b0485c64c566 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Wed, 9 Apr 2014 19:59:24 -0400 Subject: 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 --- meta-openstack/recipes-devtools/python/python-cinder_git.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb') 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" inherit setuptools update-rc.d identity default_configs +CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift" + do_install_append() { TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} CINDER_CONF_DIR=${D}${sysconfdir}/${SRCNAME} @@ -37,6 +39,7 @@ do_install_append() { sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/cinder.conf sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/cinder.conf + sed -e "s:%CINDER_BACKUP_BACKEND_DRIVER%:${CINDER_BACKUP_BACKEND_DRIVER}:g" -i ${WORKDIR}/cinder.conf install -d ${CINDER_CONF_DIR} install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ -- cgit v1.2.3-54-g00ecf