The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #3746

puppetd --tags should support logical not

Added by Jeff McCune over 4 years ago. Updated over 2 years ago.

Status:DuplicateStart date:05/07/2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:tags
Target version:-
Affected Puppet version:0.25.4 Branch:
Keywords:tags inversion filter workflow

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

Impact Data: This request was brought up by a customer in the Boston training session in May. This feature will potentially allow the customer to replace func and use puppet in it’s place.

Problem Statement: Puppetd —tags supports filtering by inclusion but does not support filtering by exclusion. The customer would like to apply everything except certain tags.

Expected Behavior: The —tags option should support logical not through something like —tags !mytag

Actual Behavior: Specifying puppet —tags !mytag results in an “invalid tag” error.


Related issues

Related to Puppet - Feature #3771: There should be a general way to select subsets of the ca... Accepted 05/14/2010
Duplicates Puppet - Feature #1107: Allow exclusion in tags specified on the command line Accepted

History

#1 Updated by James Turnbull over 4 years ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Luke Kanies

+1 from me.

#2 Updated by Luke Kanies over 4 years ago

  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Luke Kanies)

Good idea, but I still think there’s a general “select subset of catalog” option we should be thinking.

#3 Updated by Nan Liu over 4 years ago

+1 Customer requested this functionality during the last onsite audit.

#4 Updated by Kristian Kostecky over 2 years ago

What is the update on what version is to get this feature? This is extremely useful.

#5 Updated by Nigel Kersten over 2 years ago

It’s not actively planned for any version, which is why it doesn’t have one assigned, but we believe there’s general utility here, and so would take code to solve this specific problem.

As Luke said earlier though, we do think there is a more general method of selecting subsets of a catalog that is the better bet in the long term.

#6 Updated by Luke Kanies over 2 years ago

Yeah, I’d love to see a ‘select’ face or something similar with a mini language on the CLI for picking what you want to run. That seems much easier than building boolean logic into a single argument to both the agent and apply faces.

#7 Updated by Nick Fagerlund over 2 years ago

  • Status changed from Accepted to Duplicate

Also available in: Atom PDF