salt.modules.match

The match module allows for match routines to be run and determine target specs.

salt.modules.match.compound(tgt)

Return True if the minion matches the given compound target

CLI Example:

salt '*' match.compound 'L@cheese,foo and *'
salt.modules.match.data(tgt)

Return True if the minion matches the given data target

CLI Example:

salt '*' match.data 'spam:eggs'
salt.modules.match.glob(tgt)

Return True if the minion matches the given glob target

CLI Example:

salt '*' match.glob '*'
salt.modules.match.grain(tgt)

Return True if the minion matches the given grain target

CLI Example:

salt '*' match.grain 'os:Ubuntu'
salt.modules.match.grain_pcre(tgt)

Return True if the minion matches the given grain_pcre target

CLI Example:

salt '*' match.grain_pcre 'os:Fedo.*'
salt.modules.match.ipcidr(tgt)

Return True if the minion matches the given ipcidr target

CLI Example:

salt '*' match.ipcidr '192.168.44.0/24'
salt.modules.match.list(tgt)

Return True if the minion matches the given list target

CLI Example:

salt '*' match.list 'server1,server2'
salt.modules.match.pcre(tgt)

Return True if the minion matches the given pcre target

CLI Example:

salt '*' match.pcre '.*'
salt.modules.match.pillar(tgt)

Return True if the minion matches the given pillar target

CLI Example:

salt '*' match.pillar 'cheese:foo'

Previous topic

salt.modules.makeconf

Next topic

salt.modules.mdadm