Stores eauth tokens in the filesystem of the master. Location is configured by the master config option 'token_dir'
salt.tokens.localfs.get_token(opts, tok)¶Fetch the token data from the store.
| Parameters: |
|
|---|---|
| Returns: | Token data if successful. Empty dict if failed. |
salt.tokens.localfs.list_tokens(opts)¶List all tokens in the store.
| Parameters: | opts -- Salt master config options |
|---|---|
| Returns: | List of dicts (tokens) |
salt.tokens.localfs.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.localfs.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: 3004.1