OP#706 extend exec to run only if found off
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -4,10 +4,12 @@
|
|||||||
"dontlognull",
|
"dontlognull",
|
||||||
"dport",
|
"dport",
|
||||||
"forwardfor",
|
"forwardfor",
|
||||||
|
"getsebool",
|
||||||
"httplog",
|
"httplog",
|
||||||
"managehome",
|
"managehome",
|
||||||
"maxconn",
|
"maxconn",
|
||||||
"nologin",
|
"nologin",
|
||||||
|
"onlyif",
|
||||||
"pidfile",
|
"pidfile",
|
||||||
"redispatch",
|
"redispatch",
|
||||||
"roundrobin",
|
"roundrobin",
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ class confdroid_haproxy::main::config (
|
|||||||
|
|
||||||
if $hy_selinux_allow_stats == true {
|
if $hy_selinux_allow_stats == true {
|
||||||
exec { 'setsebool haproxy_connect_any on':
|
exec { 'setsebool haproxy_connect_any on':
|
||||||
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
|
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
|
||||||
|
onlyif => '/usr/sbin/getsebool haproxy_connect_any | /usr/bin/grep -q " --> off$"',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user