Puppet: System Administration Automated

Support

Ticket #286 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Support wildmat/regex matches

Reported by: ericb@transmeta.com Assigned to: luke
Priority: normal Milestone: unplanned
Component: language Version:
Severity: normal Keywords:
Cc: Triage Stage: Needs design decision
Attached Patches: None Complexity: Hard

Description

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).

Change History

04/05/07 21:56:10 changed by luke

  • specification set to None.
  • patch set to None.
  • complexity set to Hard.
  • milestone set to unplanned.
  • approval set to Against.
  • compatibility set to Full.
  • stage set to Needs design decision.

If this gets implemented, it should be part of the External Node Classification solution.

I'm not convinced that regex support is really necessary for node classification, or for any other part of Puppet, but I could be convinced.