1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 02:17:56 +01:00

Added saltstack.

This commit is contained in:
Peter Tripp 2014-07-27 12:36:19 -07:00
parent 8025803d9d
commit 8610d9ce19
4 changed files with 62 additions and 0 deletions

18
pages/common/salt Normal file
View file

@ -0,0 +1,18 @@
#salt
>Execute commands and assert state on remote salt minions.
- List connected minions
`salt '*' test.ping`
- Execute a highstate on all connected minions:
`salt '*' state.highstate
- Upgrade packages using the OS package manager (apt, yum, brew) on a subset of minions
`salt '*.domain.com' pkg.upgrade
- Execute an arbitrary command on a particular minion:
`salt '{{minion_id}}' cmd.run "ls "

18
pages/common/salt-call.md Normal file
View file

@ -0,0 +1,18 @@
# salt-key
> Invoke salt locally on a salt minion.
- Perform a highstate on this minion
`salt-call state.highstate`
- Perform a highstate dry-run, compute all changes but don't actually perform them
`salt-call state.highstate test=true`
- Perform a highstate with verbose debugging output
`salt-call -l debug state.highstate`
- List this minion's grains
`salt-call grains.items`

16
pages/common/salt-key.md Normal file
View file

@ -0,0 +1,16 @@
# salt-key
> Manages salt minion keys on the salt master
> Needs to be run on the salt master, likely as root or with sudo
- List all accepted, unaccepted and rejected minion keys
`salt-key -L`
- Accept or reject a minion key by name
`salt-key -a {{MINION_ID}}`
`salt-key -r {{MINION_ID}}`
- Print fingerprints of all public keys
`salt-key -F`

10
pages/common/salt-run Normal file
View file

@ -0,0 +1,10 @@
#salt-run
>Frontend for executing salt-runners on minions
- Show status of all minions
`salt-run manage.status`
- Show all minions which are disconnected
`salt-run manage.up`