fix: use fact to determine if selinux in use
This commit is contained in:
@@ -20,7 +20,6 @@ class profiles::puppet::puppetboard (
|
||||
Integer $gunicorn_threads = 4,
|
||||
String $nginx_vhost = 'puppetboard.main.unkin.net',
|
||||
Integer $nginx_port = 80,
|
||||
Boolean $selinux = true,
|
||||
#String[1] $secret_key = "${fqdn_rand_string(32)}",
|
||||
) {
|
||||
|
||||
@@ -124,7 +123,7 @@ class profiles::puppet::puppetboard (
|
||||
|
||||
|
||||
# if selinux is defined, manage it
|
||||
if $selinux {
|
||||
if $::facts['os']['selinux']['config_mode'] == 'enforcing' {
|
||||
|
||||
# call the nginx selinux class
|
||||
class { 'profiles::selinux::nginx':
|
||||
|
||||
Reference in New Issue
Block a user