Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.31 KB

File metadata and controls

38 lines (25 loc) · 1.31 KB

Salt Cheatsheet

Salt (Infrastructure Management tool) can be used for data-driven orchestration, remote execution for any infrastructure, configuration management for any app stack, and much more.

See also

SaltStack commands

On Master:

service salt-master restart

For Minion:

service salt-minion restart

For Salt API:

service salt-api restart

Salt-master commands

salt-run manage.status       # List minion connected to master
salt-key --list all          # Listing minions keys
salt-key -A                  # Accept all minions keys, y to force validation
salt-key -D                  # Delete all minions key
salt-key -a <minionID>       # Accept one of minions

salt 'scribe.ac-test.fr' test.ping     # Ping one of minions
salt '*' test.ping                     # Ping all minions
salt "*" cmd.run 'reboot'              # Run OS command on minion
salt-call sys.list_modules --out=json  # Listing modules
salt-call sys.list_state_modules       # Listing states