salt.modules.grains

Control aspects of the grains data

Members

item

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

Return a singe component of the grains data

CLI Example:

salt '*' grains.item os

items

salt.modules.grains.items()

Return the grains data

CLI Example:

salt '*' grains.items

ls

salt.modules.grains.ls()

Return a list of all available grains

CLI Example:

salt '*' grains.ls

Parent topic

Table Of Contents

Previous topic

salt.modules.git

Next topic

salt.modules.groupadd