Set Up Masterless Salt

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

When writing or testing Salt formulas, it’s often nice to have a test environment or ability to created throwaway servers for testing. We don’t want a full Salt environment for this, so instead we’ll create a masterless Salt minion for testing.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install Salt

Install Salt on the provided CentOS machine.

Update the Configuration
  1. Configure Salt to run without a master.
  2. Ensure Salt uses the new configuration.
Test for Salt

Use salt-call to test that Salt is running locally.

Additional Resources

You need to create a development Salt minion on which you can test formulas on CentOS 8. Using the provided server, install Salt and configure the minion so it can be used locally to test formulas. Two Salt formulas have been provided and mapped to the local node (see /srv/salt) for testing.

Note that masterless Salt minions use the salt-call --local command to run states and formulas stored locally.

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?