I want to setup the salt pillar to make key value pairs available to a particular instance in a dynamic way. It appears that ext_pillar
(which can be used to generate key pairs dynamically) cannot restrict access to particular minions. In my scenario minions can be destroyed and new ones can join automatically.
In this situation, one solution for my problem (which seems quite tedious and inefficient) is:
I am hoping there is a better way to do the same thing. Any ideas?
ext_pillar allows you return any data that you want. It is provided the minion id as well as the minion grains and other info. That allows you to decide what info to return from the ext_pillar. So you can, indeed, restrict access to data to particular minions.