Re: [Puppet Users] selinux / selboolean error

2014-12-27 Thread Martin Alfke
Hi Paul, some more insight: if $::selinux is true if the variable exists and does not contain the bool value ‘false’ Facter returns a string and therefor the if$var will always apply. You have two possibilities: 1. like Johan mentioned: Check for the proper value: if $::selinux == ‘true’ 2. m

Re: [Puppet Users] selinux / selboolean error

2014-12-26 Thread Johan De Wit
facter returns strings, and "false" (the string) evaluates to true. if $selinux == "true" ?? On 26/12/14 17:01, Sebastian Otaegui wrote: When you run facter on the node do you get the right value? On Tuesday, December 23, 2014, Paul Raines > wrote: In the ma

Re: [Puppet Users] selinux / selboolean error

2014-12-26 Thread Sebastian Otaegui
When you run facter on the node do you get the right value? On Tuesday, December 23, 2014, Paul Raines wrote: > In the manifest/init.pp of a module I am writing in puppet 3.6.2 I have > > if $selinux { >selboolean { 'authlogin_nsswitch_use_ldap': > persistent => true, >

[Puppet Users] selinux / selboolean error

2014-12-26 Thread Paul Raines
In the manifest/init.pp of a module I am writing in puppet 3.6.2 I have if $selinux { selboolean { 'authlogin_nsswitch_use_ldap': persistent => true, value => on, } } How when this runs on machine with selinux disabled (facter clearly shows $selinux is fal