From b825fa0fac27ee733037ead3f52a2ca18a53a53c Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 8 Jan 2014 01:05:55 -0500 Subject: ceilometer: set libvirt_type to KVM, but allow modification for nested virt We expose the libvirt_type config setting with a default value of 'kvm', but for nested virtualization configurations, we also provide a bbappend that will modify the value to 'qemu' automatically. Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-ceilometer_git.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-openstack-qemu/recipes-devtools/python/python-ceilometer_git.bbappend (limited to 'meta-openstack-qemu') diff --git a/meta-openstack-qemu/recipes-devtools/python/python-ceilometer_git.bbappend b/meta-openstack-qemu/recipes-devtools/python/python-ceilometer_git.bbappend new file mode 100644 index 0000000..5d45d62 --- /dev/null +++ b/meta-openstack-qemu/recipes-devtools/python/python-ceilometer_git.bbappend @@ -0,0 +1,11 @@ +do_install_append() { + if [ ! -f "${WORKDIR}/ceilometer.conf" ]; then + return + fi + + TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} + CEILOMETER_CONF_DIR=${D}/${sysconfdir}/ceilometer + + sed -e "s:^libvirt_type.*=.*$:libvirt_type = qemu:" \ + -i ${CEILOMETER_CONF_DIR}/ceilometer.conf +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf