On 7/23/14, 4:42 PM, huhm4n wrote:
> I just want to audit the server, like if someone created the user
> manually, then i'd know. How do i do that?
> 
> On Wednesday, July 23, 2014 4:08:07 PM UTC-7, Ygor wrote:
> 
>     Use puppet to create new users. 
> 
>     On Jul 23, 2014, at 6:09 PM, huhm4n <oj.m...@gmail.com
>     <javascript:>> wrote:
> 
>>     How do i make puppet notify me when new users are created? Thanks
>>     in advance
>>

Hi huhm4n,

You could ensure all the users exist by individually modelling them and
then use the resources resource to remove entries that are not managed.
This could be ran in --noop which would inform you that any users not
managed by Puppet would be removed.

  user { 'alice': }
  user { 'bob': }
  ...
  user { 'root': }

  resources { 'user':
    purge => true,
  }

http://docs.puppetlabs.com/references/stable/type.html#resources

Best regards,
-g


-- 
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53D05E1F.1080009%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to