Node groups

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Targeting »

# Node groups

Node group
  A predefined group of minions declared in the master configuration file `nodegroups` setting as a compound target.

Nodegroups are declared using a compound target specification. The compount target documentation can be found here:

Compound Matchers

For example, in the master config file `nodegroups` setting:

    nodegroups:
      group1: 'L@foo.domain.com,bar.domain.com,baz.domain.com and bl*.domain.com'
      group2: 'G@os:Debian and foo.domain.com'

Specify a nodegroup via the `-N` option at the command-line:

    salt -N group1 test.ping

Specify a nodegroup with `- match: nodegroup` in a top file:

    base:
      group1:
        - match: nodegroup
        - webserver

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Targeting »