Thanks for the suggestion, but I would like to stick to see if I can get 
that script working correctly first before using an additional management 
software.

On Friday, November 30, 2012 1:19:08 AM UTC-5, Pete wrote:
>
> Hi.
>
> I have stopped using puppet to manage users. (I now use FreeIPA for 
> authentication and authorization)
> I used to use the password field in the user resource to do this It needs 
> an encrypted password though.
> It worked fine for what I needed at the time.
> So if you can get the password from the shadow file on one server you can 
> use that to set the passwords on all your other servers.
> It should be pretty easy to use Heira to store them.
>
>
>
>
> On 30 November 2012 15:14, illectronic <theo...@gmail.com <javascript:>>wrote:
>
>> Hi, I am new to this and I discovered a manifest in an old post that 
>> should change passwords. It runs fine, but the password does not change. I 
>> am wondering how this would work since it would need to change the shadow.
>>
>> Thanks
>>
>>
>> define change_passwd($user,$passwd) {
>>     exec { "/usr/bin/puppet apply -v -e \'user { \"${user}\": password
>> => \"${passwd}\" }\'":
>>             onlyif     => "/bin/grep -c ^${user}: /etc/shadow"
>>     }
>> }
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/puppet-users/-/TZ868p26GtAJ.
>> To post to this group, send email to puppet...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> puppet-users...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/4Yzal_7bn9QJ.
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