mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Finish the match.filter_by example (#33281)
This commit is contained in:
parent
319a4d8288
commit
01ce818092
@ -322,10 +322,14 @@ def filter_by(lookup, expr_form='compound', minion_id=None):
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Filter the data for the current minion into a variable:
|
||||
{% set roles = salt['match.filter_by']({
|
||||
'web*': ['app', 'caching'],
|
||||
'db*': ['db'],
|
||||
}) %}
|
||||
|
||||
# Make the filtered data available to Pillar:
|
||||
roles: {{ roles | yaml() }}
|
||||
'''
|
||||
expr_funcs = dict(inspect.getmembers(sys.modules[__name__],
|
||||
predicate=inspect.isfunction))
|
||||
|
Loading…
Reference in New Issue
Block a user