Add example of using expr_form

This commit is contained in:
David Boucha 2013-08-01 14:29:49 -06:00
parent 7e15f606f9
commit b3bff31a40

View File

@ -125,4 +125,21 @@ command::
salt \* cmd.run 'rm -rf /tmp/*'
Use the `expr_form` argument to specify a matcher
.. code-block:: yaml
clean_tmp:
cmd.cmd.run:
- tgt: 'os:Ubuntu'
- expr_form: grain
- arg:
- rm -rf /tmp/*
clean_tmp:
cmd.cmd.run:
- tgt: 'G@roles:hbase_master'
- expr_form: compound
- arg:
- rm -rf /tmp/*