saltstack/salt — Issue #773: Add simple negation to the grain matcher
Author: SEJeff
Created: 2012-02-27 15:44:44+00:00
State: open

You can match everything except something with the grain ```roles=mail-server``` with a state syntax like:

'* not G@roles:mail-server':
- match: grain

It would be nice if the grain matcher supported negation which was implicit in including everything else. The below should be functionally equivalent to the above:

'not roles:mail-server':
- match: grain

See this mailinglist thread: https://groups.google.com/forum/#!topic/salt-users/1-SjYxugDw4