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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3b045b98-53a6-477a-96fc-1ea5f1f635f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.