octavia/elements/haproxy-octavia/os-refresh-config/configure.d/20-haproxy-selinux

10 lines
233 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
# Allow haproxy to proxy any port if SELinux is in enforcing mode
# https://bugs.launchpad.net/tripleo/+bug/1339938
if [[ -x /usr/sbin/semanage ]]; then
setsebool -P haproxy_connect_any 1
fi