Provide token storage in Redis cluster.
To get started simply start a redis cluster and assign all hashslots to the connected nodes. Add the redis hostname and port to master configs as eauth_redis_host and eauth_redis_port. Default values for these configs are as follow:
eauth_redis_host: localhost
eauth_redis_port: 6379
depends: |
|
---|
salt.tokens.rediscluster.
get_token
(opts, tok)¶Fetch the token data from the store.
Parameters: |
|
---|---|
Returns: | Token data if successful. Empty dict if failed. |
salt.tokens.rediscluster.
list_tokens
(opts)¶List all tokens in the store.
Parameters: | opts -- Salt master config options |
---|---|
Returns: | List of dicts (token_data) |
salt.tokens.rediscluster.
mk_token
(opts, tdata)¶Mint a new token using the config option hash_type and store tdata with 'token' attribute set to the token. This module uses the hash of random 512 bytes as a token.
Parameters: |
|
---|---|
Returns: | tdata with token if successful. Empty dict if failed. |
salt.tokens.rediscluster.
rm_token
(opts, tok)¶Remove token from the store.
Parameters: |
|
---|---|
Returns: | Empty dict if successful. None if failed. |
Docs for previous releases are available on readthedocs.org.
Latest Salt release: latest_release