mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add explanation about N@
classifier. Inspired by #25292
This commit is contained in:
parent
8bc2426816
commit
936c1ff6c8
@ -2674,7 +2674,6 @@ A group consists of a group name and a compound target.
|
|||||||
- 'or'
|
- 'or'
|
||||||
- 'G@foo:baz'
|
- 'G@foo:baz'
|
||||||
|
|
||||||
|
|
||||||
More information on using nodegroups can be found :ref:`here <targeting-nodegroups>`.
|
More information on using nodegroups can be found :ref:`here <targeting-nodegroups>`.
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,6 +50,12 @@ To match a nodegroup on the CLI, use the ``-N`` command-line option:
|
|||||||
|
|
||||||
salt -N group1 test.ping
|
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:
|
To match a nodegroup in your :term:`top file`, make sure to put ``- match:
|
||||||
nodegroup`` on the line directly following the nodegroup name.
|
nodegroup`` on the line directly following the nodegroup name.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user