Pillar is also one of the most important components of saltstack, and its role is to define any data related to the controlled host, and the defined data can be used by other components such as templates, State, API, etc. The data defined in pillar is associated with the minion of different business features so that different minion can only see their own matching data, so pillar security is very high, suitable for some more sensitive data, which is the key point of difference grains, such as defining the user ID, group ID, read and Write permissions, packages and other information of different business hosts, the definition specification is in Python dictionary form, key/value, the topmost key is usually the name of the host ID or group. Here is a detailed description of how pillar is defined and used.
Saltstack Pillar Components (6)