Re: [Puppet Users] user resource, get password from command on master

2012-12-12 Thread Peter Brown
On 12 December 2012 11:58, Jakov Sosic wrote: > On 12/10/2012 04:47 PM, jcbollinger wrote: > > There are good, industry-standard approaches to centralized password >> management. You should really choose among those instead of rolling >> your own. One of the best-regarded is LDAP, and you coul

Re: [Puppet Users] user resource, get password from command on master

2012-12-11 Thread Jakov Sosic
On 12/10/2012 04:47 PM, jcbollinger wrote: There are good, industry-standard approaches to centralized password management. You should really choose among those instead of rolling your own. One of the best-regarded is LDAP, and you could also consider NIS (just to name two). The former is mor

Re: [Puppet Users] user resource, get password from command on master

2012-12-10 Thread jcbollinger
On Monday, December 10, 2012 2:49:10 AM UTC-6, SAF wrote: > > > Do you happen to know with what user do the scripts get executed on the > master? I it's not root, i might have to stick some sudos in there. > > Functions are evaluated as a normal part of the puppet master's execution, thus they r

Re: [Puppet Users] user resource, get password from command on master

2012-12-10 Thread Martin Alfke
On 10.12.2012, at 09:49, Andrei-Florian Staicu wrote: > On Mon, Dec 10, 2012 at 10:28 AM, Martin Alfke wrote: > Hi Andrei, > > On 10.12.2012, at 09:22, Andrei-Florian Staicu wrote: > > > Hi all, > > > > I started managing users with puppet (3). Right now it works ok, but I have > > to change

Re: [Puppet Users] user resource, get password from command on master

2012-12-10 Thread Andrei-Florian Staicu
On Mon, Dec 10, 2012 at 10:28 AM, Martin Alfke wrote: > Hi Andrei, > > On 10.12.2012, at 09:22, Andrei-Florian Staicu wrote: > > > Hi all, > > > > I started managing users with puppet (3). Right now it works ok, but I > have to change the hash manually in the manifest files. I would like users >

Re: [Puppet Users] user resource, get password from command on master

2012-12-10 Thread Martin Alfke
Hi Andrei, On 10.12.2012, at 09:22, Andrei-Florian Staicu wrote: > Hi all, > > I started managing users with puppet (3). Right now it works ok, but I have > to change the hash manually in the manifest files. I would like users to > login to the puppet master and change the password for themsel

[Puppet Users] user resource, get password from command on master

2012-12-10 Thread Andrei-Florian Staicu
Hi all, I started managing users with puppet (3). Right now it works ok, but I have to change the hash manually in the manifest files. I would like users to login to the puppet master and change the password for themselves. Could I do something like this? password => `grep $user /etc/shadow | awk