I'm trying to get Puppet 2.6.7 working on NetBSD 5.  It looks like
there hasn't been much progress with Puppet on the NetBSD platform -
the pkgsrc version is still at 0.25.5.

The main problem I'm having is with puppetmasterd.  When I try to
start it, it complains:

# puppetmasterd
Could not prepare for execution: Could not find a default provider for
user
#

Looking this error up, I see the answer in the past has been to
install a Ruby library called "ruby-shadow" or "ruby-libshadow" to
give Puppet access to the password database, in particular the
encrypted passwords of users.

But ruby-shadow / libshadow don't seem to want to compile on NetBSD.
Looks like they use some Linux-specific library calls.

I also found someone asking why usermod/userdel/userinfo could not be
used as a user provider in BSD - the reply they got was that there was
no way to see the encrypted password.  But in NetBSD 5, the "userinfo"
command does show you the encrypted password.

So I looked through lib/puppet/provider/user/useradd.rb and it looks
like the ruby-shadow stuff is only called for password_min_age,
password_max_age, and retrieving the encrypted password.    It looks
like the NetBSD 5 "userinfo" command can do most of that:

# userinfo bin
login   bin
passwd  *
uid     3
groups  bin
change  NEVER
class
gecos   Binaries Commands and Source,,,
dir     /
shell   /bin/false
expire  NEVER

Any suggestions on how to put this together?  As you might guess, I'm
new to Puppet and working with Ruby.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to