Chapter 2. Controlling Your Minions with Remote Execution

In the previous chapter, we installed our Salt minion and Salt master and learned how to send our first commands. We're ready to control all the systems in our infrastructure from a central server, our Salt master.

In this chapter, we are going to expand upon what we discussed there. You will learn the following:

  • How a remote execution command is structured
  • How to target minions in various ways
  • Grains and how they are useful for remote execution
  • The basic relationship between minion and master
  • Practical examples of how you can use remote execution to make managing your servers easier

Let's get started!

The structure of a remote execution command

If you remember, our basic remote execution command ...

Get Learning SaltStack - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.