Thanks so much Eric.
Really appreciated.

/Alfredo
On 12/05/2015 10:28 AM, "Eric Sorenson" <eric.soren...@puppetlabs.com>
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:
> https://tickets.puppetlabs.com/browse/PUP-1331
>
> Feel free to add yourself as a watcher and add a comment describing your
> use case, those help bugs bubble up to the top.
>
>
> On Friday, May 8, 2015 at 6:11:22 AM UTC-7, jcbollinger wrote:
>>
>>
>>
>> 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 present and not
>>> resetting the password.
>>>
>>
>> Then as I said, create and use a custom fact to evaluate the user's
>> existence prior to the catalog request.  Also, consider configuring agents
>> to not apply cached catalogs.
>>
>> You could perhaps create a custom provider for the User type, too, to
>> perform the evaluation at the time of application.  That could work to
>> achieve the behavior you describe, but it will probably produce anomolies
>> in the form of reported updates to the affected user(s) that in fact change
>> nothing.
>>
>>
>> John
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/4de5b415-4c14-4eae-9c29-42cdd929e00d%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/4de5b415-4c14-4eae-9c29-42cdd929e00d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAWpFTEnjc3M92i30Y5zm2O1T_8eKzEj5ZyF68cs2ATmazZ58Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to