Christopher <chris...@pricegrabber.com> writes: > I have an existing puppet infrastructure, part of which manages adding > and removing users from our servers. Now I would like to manage users > in a way similar to the best practices > http://reductivelabs.com/trac/puppet/wiki/PuppetBestPractice#managing-users > guide, with different combinations of users on different servers. > something like; admins, managers, dba, developers, qa. On different > server types like; restricted, database, general, web, mail, etc.
> Now my problem is that I currently have every user on every server (for > legacy reasons) and need to either add or remove users based on the > above classifications. If you turn on purging for user resources, any users not explicitly added to that server will be automatically deleted by Puppet unless they're in the UID range for system users. resources { user: purge => true } Then you don't have to generate removal rules for users, just make sure that you have all the users defined that you want. -- Russ Allbery (r...@stanford.edu) <http://www.eyrie.org/~eagle/> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---