Salt cheatsheet
List minions
List all minions that are up
salt-run manage.up
List all unresponsive or down minions
salt-run manage.down [removekeys=True]
Note: if (the optional) removekeys is used, it removes the minion from the master’s accepted list
List all minions accepted by the master
salt-key -L
This command list all minions, independent of their up/down status
Add ssh public key to a user’s authorized_keys
salt '<host>' ssh.set_auth_key <user> '<key>' enc='rsa'
Read the documentation of a specific module
salt '*' sys.doc <module>
Leave a Reply