Re: [Puppet Users] Re: Change user password only on systems where they exist

2012-02-26 Thread Romeo Theriault
On Sun, Feb 26, 2012 at 05:05, bel wrote: > You might want to change the regex used in the grep line to: > > '^${user}:' # Adding the colon > > This would prevent false-positives when, for e.g., you are looking for > user "joe" in a system where it doesn't exist but "joep" does. Thanks! Good poin

[Puppet Users] Re: Change user password only on systems where they exist

2012-02-26 Thread bel
You might want to change the regex used in the grep line to: '^${user}:' # Adding the colon This would prevent false-positives when, for e.g., you are looking for user "joe" in a system where it doesn't exist but "joep" does. On Feb 25, 5:19 pm, Romeo Theriault wrote: > On Wed, Feb 22, 2012 at

Re: [Puppet Users] Re: Change user password only on systems where they exist

2012-02-25 Thread Romeo Theriault
On Thu, Feb 23, 2012 at 04:04, jcbollinger wrote: > Do you want merely to reset the password and then ignore subsequent > changes, or do you intend to keep the password fixed to the new > value?  If the former then Puppet isn't the right tool for the job. > Instead, you want MCollective or anothe

[Puppet Users] Re: Change user password only on systems where they exist

2012-02-23 Thread jcbollinger
On Feb 22, 9:49 pm, Romeo Theriault wrote: > Hi, We're just getting started with puppet and one of the things we'd > like to automate across a mix of Solaris and RHEL boxes is resetting a > users password. But we only want to reset the users password on the > boxes they already exist on. We don'