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