fix: use fact to determine if selinux in use
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user