summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-glance_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance_git.bb34
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
19S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
20 20
21inherit setuptools update-rc.d identity default_configs hosts openstackchef monitor 21inherit setuptools update-rc.d identity default_configs hosts monitor
22 22
23GLANCE_DEFAULT_STORE ?= "file" 23GLANCE_DEFAULT_STORE ?= "file"
24GLANCE_KNOWN_STORES ?= "glance.store.rbd.Store,\ 24GLANCE_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
126CHEF_SERVICES_CONF_FILES := "\
127 ${sysconfdir}/${SRCNAME}/glance-api.conf \
128 ${sysconfdir}/${SRCNAME}/glance-cache.conf \
129 ${sysconfdir}/${SRCNAME}/glance-registry.conf \
130 "
131
132pkg_postinst_${SRCNAME}-setup () { 124pkg_postinst_${SRCNAME}-setup () {
133 if [ "x$D" != "x" ]; then 125 if [ "x$D" != "x" ]; then
134 exit 1 126 exit 1