I applied the original patch, but selinux is blocking collectd from
connecting to the local memcached instance.

This followup patch should fix that.  Any add-on +1s?

diff --git a/roles/collectd/memcached/tasks/main.yml 
b/roles/collectd/memcached/tasks/main.yml
index 3023af7..fc0d04f 100644
--- a/roles/collectd/memcached/tasks/main.yml
+++ b/roles/collectd/memcached/tasks/main.yml
@@ -3,6 +3,23 @@
 - name: Copy in the memcached collectd config
   copy: src=memcached.conf dest=/etc/collectd.d/memcached.conf
   tags:
+  - collectd/memcached
   - collectd
   - memcached
   notify: restart collectd
+
+- name: Ensure that semanage is present
+  yum: name=policycoreutils-python state=present
+  tags:
+  - collectd/memcached
+  - collectd
+  - memcached
+  - selinux
+
+- name: lastly, set some selinux booleans
+  seboolean: name=collectd_tcp_network_connect persistent=yes state=yes
+  tags:
+  - collectd/memcached
+  - collectd
+  - memcached
+  - selinux

Attachment: pgpT5z3mAkEF4.pgp
Description: PGP signature

_______________________________________________
infrastructure mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Reply via email to