2014.7.0 新版功能.
| depends: |
|
|---|---|
| configuration: | See |
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
salt.states.redismod.slaveof(name, sentinel_host=None, sentinel_port=None, sentinel_password=None, **connection_args)¶Set this redis instance as a slave.
salt.states.redismod.string(name, value, expire=None, expireat=None, **connection_args)¶Ensure that the key exists in redis with the value specified