Could not find layout editor-terminal-split. Defaulting to terminal.
Difficulty: Beginner
Estimated Time: 10 minutes

SaltStack course

Don’t stop now! The next scenario will only take about 10 minutes to complete.

101 SaltStack

Step 1 of 4

High Level Architecture


Host that send actions called master, the master is a minion to itself. alt text


All hosts called minions, each minion has an ID (usually it's hostname). alt text


Initiate a commands on master giving a target to execute an action that given by the master.

Usually target used by minion ID (Default minion hostname) salt '*' disk.usage

alt text

When minion connect to the master, there is an initial "handshake" process. (managed by salt-key)

The master and minions can communicate along a ZeroMQ data bus.

When the master publishes a command, it simply puts it on the ZeroMQ bus for all of the minions to see, each minion will then look at the command and the target to determine if it should run that command.

the central master can distribute files that describe how a system should be configured. called states, and they are stored in simple YAML files called SLS

    - name: /var/www/index.html
    - source: salt://webserver/main.html

the first line is the unique identifier, 2nd line is called state, 3rd and 4th are options of that state.

list of all available states in this URL