On Nov 4, 2010, at 8:28 AM, hywl51 wrote:
> Hi, all
>
> I want to control the user accounts on our company servers with
> puppet. The complete requirements are the following:
>
> 1. Assuming that one user run " useradd ...." on the server to create
> a new account named "newuser".
> 2. Puppet will konw the new user created soon, and restore the server
> status to the before. That is, puppet will delete the new user.
>
>
> I am not sure if puppet could fullfill this requirement. Could anyone
> give me some advices.
>
> Thanks
> hywl51
Hi,
I would assume that you can define a resource default:
User { ensure => absent }
and afterwards define the users you would like to be present on your system.
Martin
--
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.