Map Salt States to Minions

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Salt can help us configure and enforce state across our entire infrastructure with just a single command. But for that command to work, we need to make sure we have our states and formulas appropriately associated with our minions. This is achieved via the use of a top file, which we’ll be creating in this hands-on lab.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Review Provided Formulas

Review the formulas provided in the file_roots of the lab environment.

Create Top File

Create a top file mapping the states and formulas to minions as described in the instructions of this lab.

Run Highstate

Run a highstate to ensure the top file is working.

Additional Resources

You have finished setting up a small experimental Salt environment for your systems, and now want to test your states and formulas. Before you can run the highstate, however, you need to create a top file mapping the states to the appropriate minions.

The top file should meet these requirements:

  • The base and user formulas should be mapped to all minions.
  • The blog minion needs to have both apache and mysql formulas assigned to it.
  • All dev minions need the mysql.client, dev, and apache.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?