collectd: drop hddtemp config section except on RHEL 6

It is unnecessary since collectd 4, and breaks with 5.9.0 or
later.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-10-30 12:14:37 -07:00 committed by Pierre-Yves Chibon
parent 52137a4590
commit f5522d3fa6

View file

@ -59,8 +59,11 @@ LoadPlugin vmem
IgnoreSelected true
</Plugin>
{% if ansible_distribution_major_version|default(0)|int == 6 and ansible_distribution == "RedHat" %}
<Plugin hddtemp>
TranslateDevicename false
</Plugin>
{% endif %}
Include "/etc/collectd.d"