Issue #286 has been updated by gorget.

luke wrote:
> It's obvious that the right solution here is to use an external node 
> classification tool.  This is never going to happen in Puppet, I think.

I think that it is not so uncommon to determine the node classification based 
on node name. With thousands of computers being able to define a range of nodes 
like this : 
<pre>
node 'cors[003-127]' inherits compute {}
</pre>
could be really useful and using an external tool to classified them, make the 
configuration be a bite more complex and spread.

----------------------------------------
Feature #286: Support wildmat/regex matches
http://projects.reductivelabs.com/issues/286

Author: admin
Status: Closed
Priority: Normal
Assigned to: luke
Category: language
Target version: unplanned
Complexity: Hard
Patch: None
Affected version: 0.24.4
Keywords: 


Having wildmat/regex pattern matching for node, case, if, etc would be very 
powerful.

Instead of assuming all strings are one type or another, one possibility would 
be to assume strings without any meta-chars to be an exact match, those with 
meta-chars to be interpreted wildmat (globbing), and those prefixed with "re:" 
(or %r) to be interpreted as regex. This maintains compatibility without 
surprises for those not using/familiar with regex.

wildmat/globbing looks cleaner for common cases (eg "node: farm*" for matching 
all "farmXXX" hosts), but regex is more precise (thus i enjoy having both).


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

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

Reply via email to