From f5522d3fa6fd946ec8cb35bce7ba7e69d51a6edc Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 30 Oct 2019 12:14:37 -0700 Subject: [PATCH] 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 --- roles/collectd/base/templates/collectd.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/collectd/base/templates/collectd.conf.j2 b/roles/collectd/base/templates/collectd.conf.j2 index 93739cef81..a9a8aba2a8 100644 --- a/roles/collectd/base/templates/collectd.conf.j2 +++ b/roles/collectd/base/templates/collectd.conf.j2 @@ -59,8 +59,11 @@ LoadPlugin vmem IgnoreSelected true +{% if ansible_distribution_major_version|default(0)|int == 6 and ansible_distribution == "RedHat" %} TranslateDevicename false + +{% endif %} Include "/etc/collectd.d"