mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add example of using expr_form
This commit is contained in:
parent
7e15f606f9
commit
b3bff31a40
@ -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/*
|
||||
|
Loading…
Reference in New Issue
Block a user