2014-07-27 23:36:19 +04:00
|
|
|
# salt-key
|
2015-10-22 10:31:52 +03:00
|
|
|
|
2024-04-18 07:04:00 +03:00
|
|
|
> Manage salt minion keys on the salt master.
|
2016-01-07 20:31:27 +03:00
|
|
|
> Needs to be run on the salt master, likely as root or with sudo.
|
2023-11-20 00:07:13 +03:00
|
|
|
> More information: <https://docs.saltproject.io/en/latest/ref/cli/salt-key.html>.
|
2014-07-27 23:36:19 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- List all accepted, unaccepted and rejected minion keys:
|
2014-07-27 23:36:19 +04:00
|
|
|
|
|
|
|
`salt-key -L`
|
|
|
|
|
2016-01-20 14:41:38 +03:00
|
|
|
- Accept a minion key by name:
|
2014-07-27 23:36:19 +04:00
|
|
|
|
|
|
|
`salt-key -a {{MINION_ID}}`
|
2016-01-20 14:41:38 +03:00
|
|
|
|
|
|
|
- Reject a minion key by name:
|
|
|
|
|
2014-07-27 23:36:19 +04:00
|
|
|
`salt-key -r {{MINION_ID}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Print fingerprints of all public keys:
|
2014-07-27 23:36:19 +04:00
|
|
|
|
|
|
|
`salt-key -F`
|