O'Reilly logo

Learning SaltStack by Colton Myers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Controlling Your Minions with Remote Execution

In the last chapter, we installed our Salt minion and Salt master and learned how to send our first commands. In this chapter, we are going to expand upon what we learned there. We will learn:

  • How a remote execution command is structured
  • How to target minions in a variety of different 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 looks like this:

# sudo salt '*' test.ping
myminion:
    True

The basic Salt remote execution command is made ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required