The Salt agent, animated

The Salt agent: the master publishes, the minion decides, executes and reports

Every mechanism has a step-by-step animation, the configuration explained line by line and the exam notes. Wherever a parameter changes the outcome, you get a simulator where you change it yourself.

jobs and commands (publish on 4505, CLI → master)returns, files and pillar (4506)authentication, keys, connections to devicesevents: beacons, start, reactorrefusal, blocking or drift link cut or master down

TL;DR

Salt puts an agent, salt-minion, on every machine; the agent itself opens two connections to the master: 4505, on which the master publishes jobs to everyone at once, and 4506, on which the minion requests files and pillar and sends back results. The minion is accepted by key, after checking the fingerprint; from then on it decrypts publications with an AES key rotated daily. A job is published once; every minion decides locally whether the target describes it, runs the module and returns; the desired state is written declaratively in SLS (YAML + Jinja), assigned via top.sls and applied idempotently with state.apply, with requisites that enforce ordering and restarts. Pillar brings secrets compiled on the master; beacons and the reactor close the observe → report → repair loop; orchestrate coordinates several minions; network devices come in through proxy minions. Most incidents come from keys (reinstall with the same id), the “salt” DNS name, ports in the wrong direction and targets written as globs.

How to read the notes: red = critical for the exam, green = theory, blue = numbers, yellow = pitfalls, cyan = differences between platforms and tools (Salt, Ansible, Puppet, Chef, Cisco devices). In the animations, the configuration lines used at the current step are highlighted automatically; the ← → arrows change the step when the animation is selected.

The analogy, in short

Think of a taxi company's dispatch office: the dispatcher speaks once on the radio, every car hears it, but only the cars that recognise themselves in the description answer by phone; every driver is accepted after their badge is checked, has a standard sheet for the car and a sealed folder with their codes, and the car's sensors announce a breakdown on their own, after which the office applies its standing orders.

The model holds up to §11. From §12 onwards (AES key rotation, multi-master, proxy minion) it breaks; see the full analogy and its limits in §16.