[Puppet Users] Re: Default user password

Luke Kanies
Thu, 13 Nov 2008 00:23:15 -0000

On Nov 8, 2008, at 9:54 PM, schickb wrote:

> I would like to creating new users on a system and assign them default
> passwords that are set only upon creation. I can create the users and
> assign default passwords with the "user" type, but puppet will
> continue to reset the password back to that default value even after
> users modify their own.
>
> I guess I could handle this with an "exec" that sets passwords
only if
> the user exists but has never logged in or something. Any other
> solution?
>
> It would be helpful if the "user" type had a new attribute called
> "defaultpassword" or "initialpassword".


I can see how you''d want this.  It might actually make sense to even
have a metaparameter that generalized this -- something like
''noreplace => password''.  If the property is absent, then
it gets set,
but otherwise, it gets ignored.  This would be able to replace the
file''s ''replace'' parameter -- it would be equivalent
to ''noreplace =>
content''.

Anyone willing to open that as a feature request?

--
It is curious that physical courage should be so common in the world and
moral courage so rare. -- Mark Twain
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com