One of the best advantages of any programming language or configuration tool is its ability to make decisions based on various properties, and apply configurations, or perform tasks, based on these decisions. In this recipe, you will learn how to leverage the decision-making ability of Salt and use it to your advantage.
We will use the same minion as the previous recipe for this task:
server_typekey and value as
users. Also, create two states named
user. Add them to
pillarsto be available to all nodes.