OP#706 extend exec to run only if found off

This commit is contained in:
2026-09-07 14:54:48 +02:00
parent 7df6938b04
commit ad2428456a
2 changed files with 4 additions and 1 deletions

View File

@@ -4,10 +4,12 @@
"dontlognull",
"dport",
"forwardfor",
"getsebool",
"httplog",
"managehome",
"maxconn",
"nologin",
"onlyif",
"pidfile",
"redispatch",
"roundrobin",

View File

@@ -15,6 +15,7 @@ class confdroid_haproxy::main::config (
if $hy_selinux_allow_stats == true {
exec { 'setsebool haproxy_connect_any on':
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
onlyif => '/usr/sbin/getsebool haproxy_connect_any | /usr/bin/grep -q " --> off$"',
}
}
}