Targetting->Grains did not actually document how to target minions based on grains data.

This commit is contained in:
Vitaliy Fuks 2012-05-06 14:46:08 -04:00
parent ca1470dbb5
commit 2991ab39d6

View File

@ -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
===========================