LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

salt

Remote execution and configuration management system

TLDR

Ping all minions
$ salt '*' test.ping
copy
Run command on minions
$ salt '*' cmd.run '[command]'
copy
Target specific minion
$ salt '[minion-id]' test.ping
copy
Apply state
$ salt '*' state.apply
copy
Apply specific state
$ salt '*' state.apply [webserver]
copy
Install package
$ salt '*' pkg.install [nginx]
copy
Show grains
$ salt '[minion]' grains.items
copy
Copy file
$ salt '*' cp.get_file [salt://file.txt] [/tmp/file.txt]
copy

SYNOPSIS

salt [target] function [args]

DESCRIPTION

salt is the primary command-line interface for SaltStack, a remote execution and configuration management system. It sends commands from the Salt master to minions (managed nodes), executing them in parallel across potentially thousands of systems simultaneously and returning results.Targeting determines which minions receive commands, using glob patterns (default), regular expressions (-E), grain-based matching (-G) for targeting by OS or hardware properties, or compound expressions (-C) combining multiple criteria. Execution modules provide hundreds of functions covering package management, file operations, service control, and system administration.States define the desired configuration of systems declaratively using YAML files. The state.apply function ensures minions converge to the defined state, making Salt suitable for both ad-hoc command execution and systematic infrastructure management.

PARAMETERS

TARGET

Minion pattern.
FUNCTION
Module.function to execute.
-G GRAIN
Target by grain.
-E
Regex target.
-L
List target.
-C
Compound target.
--async
Async execution.
--timeout SECS
Command timeout.
-v, --verbose
Verbose output.

INSTALL

sudo dnf install salt
copy
sudo apk add salt-lts-master
copy
sudo zypper install salt
copy
nix profile install nixpkgs#salt
copy

CAVEATS

Requires Salt master/minion setup. Large infrastructure needs tuning. State complexity grows.

HISTORY

Salt was created by Thomas Hatch and released in 2011. It became SaltStack, later acquired by VMware in 2020.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid