New in version 2014.7.0.
redis Python module
See salt.modules.redis
for setup instructions.
key_in_redis:
redis.string:
- value: string data
The redis server information specified in the minion config file can be
overridden in states using the following arguments: host
, post
, db
,
password
.
key_in_redis:
redis.string:
- value: string data
- host: localhost
- port: 6379
- db: 0
- password: somuchkittycat
salt.states.redismod.
absent
(name, keys=None, **connection_args)¶Ensure key absent from redis
Key to ensure absent from redis
list of keys to ensure absent, name will be ignored if this is used
salt.states.redismod.
slaveof
(name, sentinel_host=None, sentinel_port=None, sentinel_password=None, **connection_args)¶Set this redis instance as a slave.
Master to make this a slave of
Ip of the sentinel to check for the master
Port of the sentinel to check for the master
salt.states.redismod.
string
(name, value, expire=None, expireat=None, **connection_args)¶Ensure that the key exists in redis with the value specified
Redis key to manage
Data to persist in key
Sets time to live for key in seconds
Sets expiration time for key via UNIX timestamp, overrides expire