Add explanation about N@ classifier. Inspired by #25292

This commit is contained in:
Denys Havrysh 2016-02-04 13:59:31 +02:00
parent 8bc2426816
commit 936c1ff6c8
2 changed files with 6 additions and 1 deletions

View File

@ -2674,7 +2674,6 @@ A group consists of a group name and a compound target.
- 'or'
- 'G@foo:baz'
More information on using nodegroups can be found :ref:`here <targeting-nodegroups>`.

View File

@ -50,6 +50,12 @@ To match a nodegroup on the CLI, use the ``-N`` command-line option:
salt -N group1 test.ping
.. note::
The ``N@`` classifier cannot be used in compound mathes within the CLI or
:term:`top file`, it is only recognized in the :conf_master:`nodegroups`
master config file parameter.
To match a nodegroup in your :term:`top file`, make sure to put ``- match:
nodegroup`` on the line directly following the nodegroup name.