Skip to content
jianingy edited this page Feb 28, 2012 · 13 revisions
  1. What's the difference between 'ALL' and 'CLUSTER'?
  2. how do you query HOSTS and GROUPS?

The basic syntax are,

  • %HOSTS and %GROUPS
  • %HOSTS:xyz has all the hosts that xyz is responsible for. @xyz is a shortcut for the above.
  • %GROUPS:abc has all the machines in the group abc and @abc is a shortcut.
  • %GROUPS:KEYS has all the group names.

also, there are set operations,

  • @xyz,-xyz901001 has all the hosts in xyz group except for xyz901001.
  • @xyz,&@abc has all the hosts both in group xyz and group abc.
  1. why do we need librange?
Clone this wiki locally