salt.sdb.redis_sdb module

Redis SDB module

New in version Fluorine.

This module allows access to Redis using an sdb:// URI.

Like all SDB modules, the Redis module requires a configuration profile to be configured in either the minion or master configuration file. This profile requires very little. For example:

sdb_redis:
  driver: redis
  host: 127.0.0.1
  port: 6379
  password: pass
  db: 1

The driver refers to the Redis module, all other options are optional. For option details see: https://redis-py.readthedocs.io/en/latest/.

salt.sdb.redis_sdb.delete(key, profile=None)

Delete a key from the Redis SDB.

salt.sdb.redis_sdb.get(key, profile=None)

Get a value from the Redis SDB.

salt.sdb.redis_sdb.set(key, value, profile=None)

Set a value into the Redis SDB.