On 08/02/2011 09:52 PM, Jfro wrote:
I'm new to Puppet but have searched this group and Puppet docs for how
to set up user passwords using puppet. I haven't found a clear answer
about setting user passwords.

I understand that it is a security risk to send plain text passwords via
Puppet. However, for my use case (setting up one "student" user on a
school computer lab) I think the risk is acceptable.

Can someone walk me through the steps of sending out a password to all
my computers for user "student."

My puppetmaster and puppets are running Ubuntu Lucide 10.4 LTS.

Thanks for getting a newbie off the ground!

This will help :
http://docs.puppetlabs.com/references/2.7.0/type.html#user-3

Otherwise, it's really just as simple as this :

user { 'student_account':
  name     => 'username',
  password => '$6$xx...'         # this is the crypted password string.
}

You can also set their group membership, home directory, uid, and other things as well. Just ensure that the user statement is in a class that's included on all of your target machines, and you're done.


--
dan.

--
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