summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2015-01-06 19:45:58 +0000
committerRalph Bean <rbean@redhat.com>2015-01-06 19:45:58 +0000
commit29a347fbb422162418436c78f299b8317cd744d6 (patch)
tree3e501d4e85dd22f5299bb2c666c1a42cf5f6a801
parent59b0fd4bfae25c792de8d5d403390af021a009f7 (diff)
Selinux boolean for haproxy.
-rw-r--r--roles/haproxy/tasks/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml
index 154fd90c5..8b0b15918 100644
--- a/roles/haproxy/tasks/main.yml
+++ b/roles/haproxy/tasks/main.yml
@@ -47,3 +47,17 @@
- { file: 503.http, dest: /etc/haproxy/503.http }
tags:
- haproxy
+
+- name: Install libsemanage-python so we can manage selinux with python...
+ yum: name=libsemanage-python state=installed
+ tags:
+ - haproxy
+ - selinux
+
+- name: Turn on certain selinux booleans so haproxy can bind to ports
+ seboolean: name={{ item }} state=true persistent=true
+ with_items:
+ - haproxy_connect_any
+ tags:
+ - haproxy
+ - selinux