The match module allows for match routines to be run and determine target specs.
Return True if the minion matches the given compound target
CLI Example:
salt '*' match.compound 'L@cheese,foo and *'
Return True if the minion matches the given data target
CLI Example:
salt '*' match.data 'spam:eggs'
Return True if the minion matches the given glob target
CLI Example:
salt '*' match.glob '*'
Return True if the minion matches the given grain target
CLI Example:
salt '*' match.grain 'os:Ubuntu'
Return True if the minion matches the given grain_pcre target
CLI Example:
salt '*' match.grain_pcre 'os:Fedo.*'
Return True if the minion matches the given ipcidr target
CLI Example:
salt '*' match.ipcidr '192.168.44.0/24'
Return True if the minion matches the given list target
CLI Example:
salt '*' match.list 'server1,server2'
Return True if the minion matches the given pcre target
CLI Example:
salt '*' match.pcre '.*'
Return True if the minion matches the given pillar target
CLI Example:
salt '*' match.pillar 'cheese:foo'