From 5f5d52c85bac80c011f1bd4e2763eef7c1efc128 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Sun, 14 Jun 2015 00:16:39 +0000 Subject: [PATCH] Allow collectd to access tcp when collectd_graphite is defined too Signed-off-by: Ricky Elrod --- roles/collectd/base/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/collectd/base/tasks/main.yml b/roles/collectd/base/tasks/main.yml index f067c6b343..399a060e8a 100644 --- a/roles/collectd/base/tasks/main.yml +++ b/roles/collectd/base/tasks/main.yml @@ -72,14 +72,14 @@ - collectd when: collectd_apache is defined -- name: Let collectd talk to apache over tcp +- name: Let collectd talk to things over tcp seboolean: name=collectd_tcp_network_connect state=yes persistent=yes tags: - collectd ignore_errors: True notify: - restart collectd - when: collectd_apache is defined + when: collectd_apache is defined or collectd_graphite is defined - name: enable collectd nfs module copy: src=nfs.conf dest=/etc/collectd.d/nfs.conf