salt.modules.data

### Navigation

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

# salt.modules.data

Manage a local persistent data structure that can hold any arbitrary data specific to the minion

`salt.modules.data.` `clear`()

  Clear out all of the data in the minion datastore, this function is destructive!

  CLI Example:

      salt '*' data.clear

`salt.modules.data.` `dump`(new_data)

  Replace the entire datastore with a passed data structure

  CLI Example:

      salt '*' data.dump '{'eggs': 'spam'}'

`salt.modules.data.` `getval`(key)

  Get a value from the minion datastore

  CLI Example:

      salt '*' data.getval <key>

`salt.modules.data.` `getvals`(*keys)

  Get values from the minion datastore

  CLI Example:

      salt '*' data.getvals <key> [<key> ...]

`salt.modules.data.` `load`()

  Return all of the data in the minion datastore

  CLI Example:

      salt '*' data.load

`salt.modules.data.` `update`(key, value)

  Update a key with a value in the minion datastore

  CLI Example:

      salt '*' data.update <key> <value>

## Comments

comments powered by Disqus

### Navigation

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