Book Image

Salt Cookbook

By : Anirban Saha
Book Image

Salt Cookbook

By: Anirban Saha

Overview of this book

Table of Contents (18 chapters)
Salt Cookbook
About the Author
About the Reviewer

Chapter 2. Writing Advanced Salt Configurations

In this chapter, you will cover:

  • Writing and retrieving pillar data

  • Using pillar data in states

  • Using grains in states

  • Using conditionals in states and pillars

  • Using Python functions in conditionals

  • Using iterations in states

  • Setting and using variables in states

  • Testing a state run before applying to minions

  • Configuring nodegroups

  • Targeting minions