salt.modules.grains

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.grains

Control aspects of the grains data

`salt.modules.grains.` `item`(key=None)

  Return a singe component of the grains data

  CLI Example:

      salt '*' grains.item os

`salt.modules.grains.` `items`()

  Return the grains data

  CLI Example:

      salt '*' grains.items

`salt.modules.grains.` `ls`()

  Return a list of all available grains

  CLI Example:

      salt '*' grains.ls

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »