From 0d6067258d09fdd47c95828e5e0e9b0f9987a529 Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Mon, 9 Jan 2017 10:04:10 -0500 Subject: chef: remove the use of chef The use of chef was never complete, had isses with updating binary database files and had a cumbersome implementation. Since we are using Ansible in meta-overc we are dropping the use of chef here and will look to being at par with meta-overc by using Ansible if/when we get time to look at runtime configuration in meta-cloud-services. Signed-off-by: Mark Asselstine Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-cinder_git.bb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (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 91098c4..e70a3aa 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb @@ -24,7 +24,7 @@ SRCREV = "61026d4e4f2a58dd84ffb2e4e40ab99860b9316a" PV = "7.0.0+git${SRCPV}" S = "${WORKDIR}/git" -inherit setuptools update-rc.d identity default_configs hosts openstackchef monitor +inherit setuptools update-rc.d identity default_configs hosts monitor CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift" @@ -77,8 +77,7 @@ do_install_append() { install -d ${D}${localstatedir}/log/${SRCNAME} - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - for file in api-paste.ini cinder.conf; do + for file in api-paste.ini cinder.conf; do sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ -i ${CINDER_CONF_DIR}/$file sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${CINDER_CONF_DIR}/$file @@ -89,8 +88,7 @@ do_install_append() { sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${CINDER_CONF_DIR}/$file sed -e "s:%CINDER_BACKUP_BACKEND_DRIVER%:${CINDER_BACKUP_BACKEND_DRIVER}:g" \ -i ${CINDER_CONF_DIR}/$file - done - fi + done if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d @@ -125,10 +123,6 @@ do_install_append() { sed -e "s:%IS_DEFAULT%:${is_default}:g" -i ${D}/etc/cinder/drivers/glusterfs_setup.sh } -CHEF_SERVICES_CONF_FILES :="\ - ${sysconfdir}/${SRCNAME}/cinder.conf \ - ${sysconfdir}/${SRCNAME}/api-paste.ini \ - " pkg_postinst_${SRCNAME}-setup () { if [ "x$D" != "x" ]; then exit 1 -- cgit v1.2.3-54-g00ecf