Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puppet 6 issue : undefined method `to_i' for :absent:symbol #178

Closed
mvisonneau opened this issue Jan 28, 2019 · 6 comments
Closed

Puppet 6 issue : undefined method `to_i' for :absent:symbol #178

mvisonneau opened this issue Jan 28, 2019 · 6 comments

Comments

@mvisonneau
Copy link

Describe the bug

With non-local users, on Puppet 6 the custom fact for filtering non-local users crashes.

Expected behavior
It should be working fine, and filter out non-local users

Actual behavior

Error: Facter: error while resolving custom facts in /tmp-packer/puppet/module-0/os_hardening/lib/facter/retrieve_system_users.rb: undefined method `to_i' for :absent:symbol

OS / Environment
Ubuntu 18.04

Puppet Version
6.2.0

@mcgege
Copy link
Member

mcgege commented Jan 28, 2019

@mvisonneau What kind of "non-local" users do you have in your setup?

@mcgege mcgege added the bug label Jan 28, 2019
@mvisonneau
Copy link
Author

I have ldap users, bound on an active directory

@mcgege
Copy link
Member

mcgege commented Jan 29, 2019

Right now I have neither Puppet 6 nor LDAP in my own test environment ... I'll try to set this up, but it will take some time ...

@mcgege
Copy link
Member

mcgege commented Jan 30, 2019

I have now setup a similar system (Ubuntu 18.04 with Puppet 6.2.0) and connected it to our AD. For this I was following this guide. I can now work with an AD user on the test system, also a home directory has been created. But there's no entry in /etc/passwd for this AD user.

And if I run puppet agent -t, I get no error (os_hardening and many other modules are used in my ruleset). My puppet server ist still v5, but this shouldn't matter (will try to upgrade the next days).

So what's different in our setup?

@mcgege
Copy link
Member

mcgege commented Feb 4, 2019

@mvisonneau My Puppet Server is now also on v6, and still I cannot reproduce this. Could you please paste in your /etc/passwd file?

@mcgege
Copy link
Member

mcgege commented Feb 27, 2019

@mvisonneau Any news here?

@mcgege mcgege closed this as completed Mar 9, 2019
@mcgege mcgege added no changelog and removed bug labels May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants