diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2017-01-09 10:04:10 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-01-09 12:23:58 -0500 |
| commit | 0d6067258d09fdd47c95828e5e0e9b0f9987a529 (patch) | |
| tree | dbce7395b11e577bbcd633fa0daeae24697df42e /meta-openstack/recipes-devtools/python/python-glance_git.bb | |
| parent | 96dd0da3edc2f56de99d84ef96effdbf366a3041 (diff) | |
| download | meta-cloud-services-0d6067258d09fdd47c95828e5e0e9b0f9987a529.tar.gz | |
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 <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-glance_git.bb | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb index bce373d..27c33b9 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_git.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb | |||
| @@ -18,7 +18,7 @@ PV = "11.0.0+git${SRCPV}" | |||
| 18 | 18 | ||
| 19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
| 20 | 20 | ||
| 21 | inherit setuptools update-rc.d identity default_configs hosts openstackchef monitor | 21 | inherit setuptools update-rc.d identity default_configs hosts monitor |
| 22 | 22 | ||
| 23 | GLANCE_DEFAULT_STORE ?= "file" | 23 | GLANCE_DEFAULT_STORE ?= "file" |
| 24 | GLANCE_KNOWN_STORES ?= "glance.store.rbd.Store,\ | 24 | GLANCE_KNOWN_STORES ?= "glance.store.rbd.Store,\ |
| @@ -97,20 +97,18 @@ do_install_append() { | |||
| 97 | 97 | ||
| 98 | install -d ${D}${localstatedir}/log/${SRCNAME} | 98 | install -d ${D}${localstatedir}/log/${SRCNAME} |
| 99 | 99 | ||
| 100 | if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then | 100 | for file in api registry cache |
| 101 | for file in api registry cache | 101 | do |
| 102 | do | 102 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ |
| 103 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ | 103 | -i ${GLANCE_CONF_DIR}/glance-$file.conf |
| 104 | -i ${GLANCE_CONF_DIR}/glance-$file.conf | 104 | sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${GLANCE_CONF_DIR}/glance-$file.conf |
| 105 | sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${GLANCE_CONF_DIR}/glance-$file.conf | 105 | sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ |
| 106 | sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ | 106 | -i ${GLANCE_CONF_DIR}/glance-$file.conf |
| 107 | -i ${GLANCE_CONF_DIR}/glance-$file.conf | 107 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" \ |
| 108 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" \ | 108 | -i ${GLANCE_CONF_DIR}/glance-$file.conf |
| 109 | -i ${GLANCE_CONF_DIR}/glance-$file.conf | 109 | sed -e "s:%DB_USER%:${DB_USER}:g" \ |
| 110 | sed -e "s:%DB_USER%:${DB_USER}:g" \ | 110 | -i ${GLANCE_CONF_DIR}/glance-$file.conf |
| 111 | -i ${GLANCE_CONF_DIR}/glance-$file.conf | 111 | done |
| 112 | done | ||
| 113 | fi | ||
| 114 | 112 | ||
| 115 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 113 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 116 | install -d ${D}${sysconfdir}/init.d | 114 | install -d ${D}${sysconfdir}/init.d |
| @@ -123,12 +121,6 @@ do_install_append() { | |||
| 123 | cp run_tests.sh ${GLANCE_CONF_DIR} | 121 | cp run_tests.sh ${GLANCE_CONF_DIR} |
| 124 | } | 122 | } |
| 125 | 123 | ||
| 126 | CHEF_SERVICES_CONF_FILES := "\ | ||
| 127 | ${sysconfdir}/${SRCNAME}/glance-api.conf \ | ||
| 128 | ${sysconfdir}/${SRCNAME}/glance-cache.conf \ | ||
| 129 | ${sysconfdir}/${SRCNAME}/glance-registry.conf \ | ||
| 130 | " | ||
| 131 | |||
| 132 | pkg_postinst_${SRCNAME}-setup () { | 124 | pkg_postinst_${SRCNAME}-setup () { |
| 133 | if [ "x$D" != "x" ]; then | 125 | if [ "x$D" != "x" ]; then |
| 134 | exit 1 | 126 | exit 1 |
