From 9b3821d1b99df9719e63cdecdb11647966e0635e Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Mon, 25 May 2015 19:28:08 +0000 Subject: [PATCH] Toggle sebool and fix missing Instance tag to collectd-apache working Signed-off-by: Ricky Elrod --- roles/collectd/base/files/apache.conf | 2 ++ roles/collectd/base/tasks/main.yml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/roles/collectd/base/files/apache.conf b/roles/collectd/base/files/apache.conf index dacd82a7d9..441da4c581 100644 --- a/roles/collectd/base/files/apache.conf +++ b/roles/collectd/base/files/apache.conf @@ -1,6 +1,8 @@ LoadPlugin apache + URL "http://localhost/apache-status?auto" + diff --git a/roles/collectd/base/tasks/main.yml b/roles/collectd/base/tasks/main.yml index 210e7d9c99..697c8cbe7f 100644 --- a/roles/collectd/base/tasks/main.yml +++ b/roles/collectd/base/tasks/main.yml @@ -56,6 +56,14 @@ - restart collectd when: collectd_apache is defined +- name: Let collectd talk to apache 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 # Three tasks for handling our (two) custom selinux modules. - name: ensure a directory exists for our custom selinux module