Re: [Puppet Users] Creating user with random password (only once)

2012-10-30 Thread Krzysztof Wilczynski
Hey, There is also this: https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppet/parser/functions/random_password.rb KW On Tuesday, October 30, 2012 1:39:35 PM UTC, Ygor wrote: > > The package "expect" contains a script/binary called "mkpasswd" that I > find very appropriate for

Re: [Puppet Users] Creating user with random password (only once)

2012-10-30 Thread Dan White
The package "expect" contains a script/binary called "mkpasswd" that I find very appropriate for making passwords. Here's its man-page: http://linux.die.net/man/1/mkpasswd -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group,

Re: [Puppet Users] Creating user with random password (only once)

2012-02-08 Thread Nan Liu
On Wed, Feb 8, 2012 at 11:30 AM, wernerbahlke wrote: > Hi, > > I want to create a user with a random password. Is there a way to only > execute the manifest once when the user does not exist but not once > the user is created? > > I know how to create a random password and can use generate to exec

Re: [Puppet Users] Creating user with random password (only once)

2012-02-08 Thread Dan White
In one user management setup, I use htpasswd to create a random password just to secure the account. Like this: htpasswd -nmb whoever `mkpasswd` | cut -d: -f2 | passwd --stdin Then, with over-the-shoulder admin access, the user can set their own password. “Sometimes I think the surest sign th

Re: [Puppet Users] Creating user with random password (only once)

2012-02-08 Thread Jeff McCune
On Wed, Feb 8, 2012 at 11:30 AM, wernerbahlke wrote: > Hi, > > I want to create a user with a random password. Is there a way to only > execute the manifest once when the user does not exist but not once > the user is created? > For situations like this I use the puppet generate() function to cre