fix: use fact to determine if selinux in use

This commit is contained in:
2024-02-11 21:05:48 +11:00
parent f8b30f335b
commit 09291da89f
3 changed files with 3 additions and 6 deletions
@@ -4,7 +4,6 @@ class profiles::reposync::webserver (
String $nginx_vhost = 'repos.main.unkin.net',
Integer $nginx_port = 80,
Boolean $favicon = true,
Boolean $selinux = true,
) {
class { 'nginx': }
@@ -39,7 +38,7 @@ class profiles::reposync::webserver (
order => 10,
}
if $selinux {
if $::facts['os']['selinux']['config_mode'] == 'enforcing' {
# include packages that are required
include profiles::packages::selinux