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
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

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