Merge "Fix configuration of collectd (lib)virt plugin"
diff --git a/nova/files/collectd_libvirt.conf b/nova/files/collectd_libvirt.conf
index e8ba456..717eef0 100644
--- a/nova/files/collectd_libvirt.conf
+++ b/nova/files/collectd_libvirt.conf
@@ -1,8 +1,9 @@
-<LoadPlugin libvirt>
+{%- set plugin_name = "libvirt" if grains['oscodename'] == 'trusty' else 'virt' %}
+<LoadPlugin {{ plugin_name }}>
Globals false
</LoadPlugin>
-<Plugin "libvirt">
+<Plugin "{{ plugin_name }}">
Connection "qemu:///system"
RefreshInterval 60
HostnameFormat "uuid"