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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
