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