Permalink
Browse files

Targetting->Grains did not actually document how to target minions ba…

…sed on grains data.
  • Loading branch information...
1 parent ca1470d commit 2991ab39d61d513d1d399dcb0ea0fe49268519ba @vitaliyf vitaliyf committed May 6, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 doc/topics/targeting/grains.rst
@@ -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
===========================

0 comments on commit 2991ab3

Please sign in to comment.