Book Image

Learning SaltStack

By : Colton Myers
Book Image

Learning SaltStack

By: Colton Myers

Overview of this book

Table of Contents (15 chapters)

Chapter 5. Expanding Our States with Jinja2 and Pillar

In the last chapter, we learned about the state system and wrote our first state. In this chapter, we will:

  • Learn the basics of the Jinja2 templating language

  • Use Jinja2 to make our states platform-agnostic

  • Learn how to define minion-specific secure data in the pillar system

  • Use Jinja2 to use pillar data in our states