Bug #7433

Regular expression nodes can match default

Added by Nick Fagerlund about 1 year ago. Updated 4 months ago.

Status:Accepted Start date:05/06/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:2.7.x
Affected Puppet version: Branch:
Keywords:
Votes: 0

Description

node /^de.*/ {
    # stuff
}

You thought you were just catching all your nodes in Germany, but if you don’t have a node default or if this is before node default in your site.pp, it will also match any default nodes.

When the node matching gives up on the certname and falls back to default, it should only match a literal node name of “default,” not a regular expression that the word “default” happens to match.


Related issues

related to Puppet - Bug #7423: unclear node inheritance semantics Closed 05/05/2011

History

Updated by Ben Hughes about 1 year ago

  • Status changed from Unreviewed to Accepted

Updated by Carla Souza 4 months ago

  • Target version set to 2.7.x

Could not reproduce the case that

node /^de.*/ {
  # stuff
}

comes before the node default. But the case where there isn’t a node default was reproducible.

Also available in: Atom PDF