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.

Reply via email to