mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Targetting->Grains did not actually document how to target minions based on grains data.
This commit is contained in:
parent
ca1470dbb5
commit
2991ab39d6
@ -16,6 +16,14 @@ information in grains is unchanging, therefore the nature of the data is
|
||||
static. So grains information are things like the running kernel, or the
|
||||
operating system.
|
||||
|
||||
Match all CentOS minions::
|
||||
|
||||
salt -G 'os:CentOS' test.ping
|
||||
|
||||
Match all minions with 64 bit CPUs and return number of available cores::
|
||||
|
||||
salt -G 'cpuarch:x86_64' grains.item num_cpus
|
||||
|
||||
Grains in the Minion Config
|
||||
===========================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user