[chef] How can I add/delete temporary users?


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] How can I add/delete temporary users?
  • Date: Tue, 29 Nov 2011 13:49:27 -0800 (PST)

I'm using the users cookbook to create users and distribute ssh keys.  I've 
now
been tasked with automating the creation/deletion of users who only need
temporary access to servers.  For example when a developer is needed to assist
with issues on a production server.  For auditing purposes we're wanting to
drive it via Git -> Chef.  I'm thinking I could search for local users within 
a
UID range, compare that with what Chef expects and delete accounts for those
that shouldn't be there.

Has anyone solved this or similar scenarios?



Archive powered by MHonArc 2.6.16.

§