When you run facter on the node do you get the right value?
On Tuesday, December 23, 2014, Paul Raines <[email protected]> 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,
> value => on,
> }
> }
>
> How when this runs on machine with selinux disabled (facter clearly shows
> $selinux is false), the selboolean still seems to get evaluated resulting
> in the error
>
> Error: /Stage[main]/Nmr_ldap/Selboolean[authlogin_nsswitch_use_ldap]:
> Could not evaluate: Execution of '/usr/sbin/getsebool
> authlogin_nsswitch_use_ldap' returned 1: /usr/sbin/getsebool: SELinux is
> disabled
>
>
> So it seems like it is ignoring the if $selinux entirely. Is this a bug
> in puppet or am I missing something?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','puppet-users%[email protected]');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/3b045b98-53a6-477a-96fc-1ea5f1f635f6%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/3b045b98-53a6-477a-96fc-1ea5f1f635f6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Those who do not understand Unix are condemned to reinvent it, poorly.
Any sufficiently recent Microsoft OS contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Unix.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAApMPgxqrLsivqBdeYyUNwHQK%2BOC55sgcc7KCFtadP%2BoA2Cqzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.