mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add nodegroup targeting doc
This commit is contained in:
parent
6caf98e9d6
commit
ddfef6e1c2
@ -112,6 +112,22 @@ corresponding letter followed by the @ symbol. In the above example a grain is
|
|||||||
used with G@ as well as a regular expression with E@. The webser* target does
|
used with G@ as well as a regular expression with E@. The webser* target does
|
||||||
not need to be prefaced with a target type specifier because it is a glob.
|
not need to be prefaced with a target type specifier because it is a glob.
|
||||||
|
|
||||||
|
Node Group Targeting
|
||||||
|
````````````````````
|
||||||
|
|
||||||
|
.. versionadded:: 0.9.5
|
||||||
|
|
||||||
|
Often the convenience of having a predefined group of minions to execute
|
||||||
|
targets on is desired. This can be accomplished with the new nodegroups
|
||||||
|
feature. Nodegroups allow for predefined compound targets to be declared in
|
||||||
|
the master configuration file:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
nodegroups:
|
||||||
|
group1: 'L@foo.domain.com,bar.domain.com,baz.domain.com and bl*.domain.com'
|
||||||
|
group2: 'G@os:Debian and foo.domain.com'
|
||||||
|
|
||||||
Calling the Function
|
Calling the Function
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user