Good point on the positives. I feel like I have to think too hard about what 
'unless_system_user => true' means. Being able to give purge some sort of 
structure (that can include negative expressions) of what to purge seems like a 
nice way of solving this.
 
On May 22, 2012, at 1:07 PM, Philip Brown wrote:

> Bit of a late entry here..
> 
> class users::resources {
>   resources { 'user':
>   purge              => true,
>   unless_system_user => true,
>   unless_uid => [10_000..20_000];
>   }
> }
> 
> 
> Puppet seems mostly driven on positives.
> Perhaps it would be better to reframe it as a positive directive, something 
> like the following:
> 
> class users::resources {
>   resources { ' user':
>      purge_set {
>         (Set definition here, where definition can include !system_user, and 
> so on)
>      }
>   }
> }
> 
> This sounds a bit cleaner to me, and could possibly be extended better to 
> other resource types.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/puppet-dev/-/jN1aIE7U-_MJ.
> 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-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to