Project

General

Profile

Actions

Bug #15500

closed

theforeman/foreman puppet module fails because selinux fact isn't always a boolean

Added by Alex Fisher almost 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

str2bool(): Unknown type of boolean given at /etc/puppetlabs/code/environments/production/modules/foreman/manifests/install.pp:23:30

I put some debug into the module and str2bool is failing because $::selinux is the string 'disabled'.

I'm using puppet 4.5 and puppetserver 2.4. It would appear the fact is a boolean when using puppet apply, but not during an agent run.

[root@host ~]# puppet apply -e 'notify{"${::selinux}":}'
Notice: Compiled catalog for host.example.com in environment production in 0.05 seconds
Notice: false
Notice: /Stage[main]/Main/Notify[false]/message: defined 'message' as 'false'
Notice: Applied catalog in 0.42 seconds

I've searched my module path and there are no other modules redefining the fact.


Related issues 1 (0 open1 closed)

Related to Installer - Bug #12657: puppet-foreman uses deprecated fact $::selinuxRejectedBrandon Weeks12/01/2015Actions
Actions

Also available in: Atom PDF