The basic format is a sequence of attributename: value
pairs to select nodes which match. You can negate a match by using !attributename: value
. If you do not specify an attribute name, then the nodename
is matched against the bare value.
The value
can be:
tags
attribute, a set of values:+
-separated list of values to AND togetherExamples:
Match a set of nodes by name, includes all the node names listed:
mynode1 mynode2
Include mynode and exclude mynode2:
mynode1 !nodename: mynode2
Include nodes matching the tags www
and prod
or the hostnames:
tags: www+prod hostname: dev1.example.com,dev2.example.com