Create a Cross-Platform Apache Salt Formula

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

An ideal Salt formula is one based on the needs of its user, and a common use case is a formula that can work across multiple distributions. In this hands-on lab, we’ll look at an existing Apache formula and then incorporate the use of Jinja so that it works on Red Hat as well as Ubuntu.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Review the Formula

Review the provided Apache formula.

Add Jinja Mapping

Using what you learned by reviewing the formula, create a map.jinja file to add the needed parameters.

Update States

Update each state so it references the Jinja map.

Additional Resources

You are a member of the DevOps team at Provendentia Press, a digital publisher, and your small digital platform has expanded! With your web server fleet no longer Ubuntu-only, you need to add Red Hat support to the existing Apache formula, using Jinja.

Review the provided formula (located in the default file roots) and then update it to work on Red Hat. Two test minions, web-ubuntu and web-redhat, have been provided.

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?