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
@@ -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':