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

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Feature #1107

Allow exclusion in tags specified on the command line

Added by Martha Greenberg about 8 years ago. Updated over 2 years ago.

Status:AcceptedStart date:
Priority:LowDue date:
Assignee:-% Done:

0%

Category:executables
Target version:-
Affected Puppet version:0.24.4 Branch:
Keywords:

We've Moved!

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

This ticket is now tracked at: https://tickets.puppetlabs.com/browse/PUP-1376


Description

Tags should allow exclusions, i.e. all,!test That’s probably the most common case you would want to use tags, so that rather than tagging everything as production, you can just tag those items you are playing with.


Related issues

Related to Puppet - Feature #3771: There should be a general way to select subsets of the ca... Accepted 05/14/2010
Related to Puppet - Feature #21665: Fix undefined array behavior in resource collectors Needs Decision
Duplicated by Puppet - Feature #3746: puppetd --tags should support logical not Duplicate 05/07/2010

History

#1 Updated by James Turnbull about 8 years ago

I think you’ll find this works – at least in does in the tagmail report…?

#2 Updated by Luke Kanies about 8 years ago

This does work in tagmail, but it doesn’t work in transactions, as Martha is indicating.

#3 Updated by James Turnbull about 8 years ago

See http://reductivelabs.com/projects/puppet/reference/reports.html

#4 Updated by James Turnbull about 8 years ago

Martha – I know you meant —tags but was suggesting that this might already be possible? Have you tested it? If it isn’t possible then that’s fine and I’d say this is an excellent enhancement.

#5 Updated by Martha Greenberg about 8 years ago

I don’t mean tagmail, I mean manifest tags. I want to run puppetd -tags all,!test and get all objects for the node that are not tagged test.

#6 Updated by Redmine Admin almost 8 years ago

  • Status changed from 1 to Accepted

#7 Updated by TIago Cruz over 7 years ago

  • Affected Puppet version set to 0.24.4

Hello Guys,

With this feature I’ll be able to do some like this?

node default {
    include dst
    include aide
    include cfg2html
    include tcpwrappers
    include shorewall

}

node exclusion host5001, host5002, host5003 {
    exclude tcpwrappers

}

Thanks!

#8 Updated by Luke Kanies over 7 years ago

No, the subject specifies command-line exclusion, not in the language.

#9 Updated by TIago Cruz over 7 years ago

Hum… nice :–)

So, today its possible do what I want to do? (exclude some host from default)? =)

#10 Updated by Luke Kanies over 7 years ago

No, it’s not possible; just that this ticket is unrelated.

#11 Updated by James Turnbull almost 7 years ago

  • Assignee deleted (Puppet Community)

#12 Updated by Nick Lewis almost 6 years ago

What is the status of this ticket? The mailing list has a patch that seems to relate but isn’t merged:

http://groups.google.com/group/puppet-dev/browse_thread/thread/77b5fd6f791dbd17/44b0f00c8c02f58a

#13 Updated by Oliver Hookins about 5 years ago

I expect that the patch is unsuitable now that 2.6 (or even 2.7) is the expected target… anything I can do to help?

#14 Updated by James Turnbull over 4 years ago

  • Target version deleted (4)

#15 Updated by Kristian Kostecky about 4 years ago

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

#16 Updated by Nick Fagerlund over 3 years ago

Like the OP implies, we would also have to let the tags setting accept the all pseudo-tag used by tagmail.conf, which I’m pretty sure it currently doesn’t.

#17 Updated by Andrew Stangl over 3 years ago

I would also like to see this feature become available, it opens up lots of possibilities

#18 Updated by Anonymous over 2 years ago

Redmine Issue #1107 has been migrated to JIRA:

https://tickets.puppetlabs.com/browse/PUP-1376

Also available in: Atom PDF