Actions
Bug #15500
closedtheforeman/foreman puppet module fails because selinux fact isn't always a boolean
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
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.
Actions