Skip to content

Commit

Permalink
Merge pull request saltstack#1219 from vitaliyf/develop
Browse files Browse the repository at this point in the history
Targeting->Grains did not actually document how to target minions based on grain information.
  • Loading branch information
thatch45 committed May 6, 2012
2 parents ca1470d + 2991ab3 commit b4ee322
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/topics/targeting/grains.rst
Expand Up @@ -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
===========================

Expand Down

0 comments on commit b4ee322

Please sign in to comment.