On Thursday, June 21, 2012 12:32:29 PM UTC-5, Ygor wrote:
>
> Are the following examples valid ?  !! with the understanding that only 
> ONE would be used !! 
>
> # the first two are obvious, but I prefer to have the examples 
> resources { 'user': 
>    purge => true, 
>    unless_system_user => false, 
> } 
>

That looks valid.  It declares that *all* unmanaged users should be purged.

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

That also looks valid.  It declares that all unmanaged users whose UIDs are 
at least 501 should be purged. 

# this is the REAL question 
> resources { 'user': 
>    purge => true, 
>    unless_system_user => '1000', 
> } 
>
 
And that looks valid, too.  It declares that all unmanaged users whose UIDs 
are at least 1001 should be purged.

Resource purging can be useful, but it is also dangerous.  I urge you to 
test carefully.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/IpW3GmZE-b0J.
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.

Reply via email to