diff options
| author | Ralph Bean <rbean@redhat.com> | 2015-01-06 19:45:58 +0000 |
|---|---|---|
| committer | Ralph Bean <rbean@redhat.com> | 2015-01-06 19:45:58 +0000 |
| commit | 29a347fbb422162418436c78f299b8317cd744d6 (patch) | |
| tree | 3e501d4e85dd22f5299bb2c666c1a42cf5f6a801 | |
| parent | 59b0fd4bfae25c792de8d5d403390af021a009f7 (diff) | |
Selinux boolean for haproxy.
| -rw-r--r-- | roles/haproxy/tasks/main.yml | 14 |
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 |
