Issue #5898 has been updated by LaMont Jones.
Nigel Kersten wrote: > So this may be difficult to answer, as those of you hitting this problem may > not actually *use* tags at all... > > When you're using regex node definitions, what would you expect to happen > with the implicit tagging? > > * tag with full node name > * tag with part of the name that matches the regex > * tag with a sanitized version of the regex (ie replacing difficult > characters) I just spent quite a bit of time finding this bug - it is completely non-obvious to anyone not steeped in the autotagging lore... To answer your question here: what's a tag and why would I care about them? - of the 3 options, 1 or 3 makes far more sense than leaving this submarine around to torpedo the unwary, especially since "-foo" seems to be a fairly common way of tagging types of hosts. lamont ---------------------------------------- Bug #5898: Node regex beginning with dash results in invalid tag https://projects.puppetlabs.com/issues/5898 Author: Matthew Powell Status: Needs Decision Priority: Normal Assignee: Nigel Kersten Category: Target version: Affected Puppet version: 2.6.4 Keywords: Branch: A node regex starting with a dash results in a tag that begins with a dash, which Puppet doesn't accept as valid: node /-(abc|def)-/ { results in the following error when it is matched: Invalid tag "-abcdef-" on node host-abc-5678.example.com Removing the initial dash works as expected: node /(abc|def)-/ { -- 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://projects.puppetlabs.com/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.
