Re: [Puppet Users] Re: check if user exist

2015-05-12 Thread Alfredo De Luca
Thanks so much Eric. Really appreciated. /Alfredo On 12/05/2015 10:28 AM, "Eric Sorenson" wrote: > The canonical way to do this is like this: > > > http://serverfault.com/questions/350230/how-can-i-have-puppet-only-set-password-when-creating-a-user > > There's an open feature request here: > htt

Re: [Puppet Users] Re: check if user exist

2015-05-11 Thread Eric Sorenson
The canonical way to do this is like this: http://serverfault.com/questions/350230/how-can-i-have-puppet-only-set-password-when-creating-a-user There's an open feature request here: https://tickets.puppetlabs.com/browse/PUP-1331 Feel free to add yourself as a watcher and add a comment describin

Re: [Puppet Users] Re: check if user exist

2015-05-08 Thread jcbollinger
On Thursday, May 7, 2015 at 11:22:43 PM UTC-5, Alfredo De Luca wrote: > > Hi John. > I am aware that if I say userxx ensure is present will work but what I > want is the first time create the user aNd set a default password but then > when the user changes it own pass I just wanna check if is p

Re: [Puppet Users] Re: check if user exist

2015-05-07 Thread Alfredo De Luca
Hi John. I am aware that if I say userxx ensure is present will work but what I want is the first time create the user aNd set a default password but then when the user changes it own pass I just wanna check if is present and not resetting the password. /Alfredo On 07/05/2015 11:32 PM, "jcbollinge

[Puppet Users] Re: check if user exist

2015-05-07 Thread jcbollinger
On Thursday, May 7, 2015 at 5:17:22 AM UTC-5, Alfredo De Luca wrote: > > Hi all. > I am using puppet source with Hiera. I want to manage users but also I > want to check if an user exist before doing something else and create > it. > > I have a module prousers as follow: > > prousers/init.pp