diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-ceilometer_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb index 816088e..aa7f07d 100644 --- a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb +++ b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb | |||
| @@ -64,21 +64,21 @@ do_install_append() { | |||
| 64 | install -m 600 ${TEMPLATE_CONF_DIR}/*.yaml ${CEILOMETER_CONF_DIR} | 64 | install -m 600 ${TEMPLATE_CONF_DIR}/*.yaml ${CEILOMETER_CONF_DIR} |
| 65 | 65 | ||
| 66 | install -m 600 ${TEMPLATE_CONF_DIR}/api_paste.ini ${CEILOMETER_CONF_DIR} | 66 | install -m 600 ${TEMPLATE_CONF_DIR}/api_paste.ini ${CEILOMETER_CONF_DIR} |
| 67 | if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then | ||
| 68 | sed -e "s:%CEILOMETER_SECRET%:${CEILOMETER_SECRET}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 67 | 69 | ||
| 68 | sed -e "s:%CEILOMETER_SECRET%:${CEILOMETER_SECRET}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | 70 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf |
| 71 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 69 | 72 | ||
| 70 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | 73 | sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf |
| 71 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | 74 | sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf |
| 72 | 75 | ||
| 73 | sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | 76 | sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf |
| 74 | sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | 77 | sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf |
| 75 | |||
| 76 | sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 77 | sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 78 | |||
| 79 | sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 80 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 81 | 78 | ||
| 79 | sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 80 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf | ||
| 81 | fi | ||
| 82 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 82 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 83 | install -d ${D}${sysconfdir}/init.d | 83 | install -d ${D}${sysconfdir}/init.d |
| 84 | 84 | ||
| @@ -107,6 +107,9 @@ do_install_append() { | |||
| 107 | cp setup-test-env.sh ${CEILOMETER_CONF_DIR} | 107 | cp setup-test-env.sh ${CEILOMETER_CONF_DIR} |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | CHEF_SERVICES_CONF_FILES :="\ | ||
| 111 | ${sysconfdir}/${SRCNAME}/ceilometer.conf \ | ||
| 112 | " | ||
| 110 | pkg_postinst_${SRCNAME}-setup () { | 113 | pkg_postinst_${SRCNAME}-setup () { |
| 111 | if [ "x$D" != "x" ]; then | 114 | if [ "x$D" != "x" ]; then |
| 112 | exit 1 | 115 | exit 1 |
| @@ -124,7 +127,7 @@ pkg_postinst_${SRCNAME}-setup () { | |||
| 124 | ceilometer-dbsync | 127 | ceilometer-dbsync |
| 125 | } | 128 | } |
| 126 | 129 | ||
| 127 | inherit setuptools identity hosts update-rc.d default_configs | 130 | inherit setuptools identity hosts update-rc.d default_configs openstackchef |
| 128 | 131 | ||
| 129 | PACKAGES += " ${SRCNAME}-tests" | 132 | PACKAGES += " ${SRCNAME}-tests" |
| 130 | PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api" | 133 | PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api" |
