salt stack: grains vs pillars
In the Salt system there are grains and pillars. I understand how I can assign custom grains, but when would it be better to consider using pillars? akoumjian The fundamental difference here is that you can set a custom grain as an innate property of a minion, versus pillar which needs to be assigned to a minion at some point. For example, there are two practical ways to assign a role to a minion: the minion id or using custom grains. You can then match against the minion id or custom grains inside your top.sls file like so: # salt/top.sls base: # match against custom grain 'G@role:webserver':