salt icon indicating copy to clipboard operation
salt copied to clipboard

grains & pillar: maybe we need some doc to burn in marber

Open kiorky opened this issue 12 years ago • 4 comments

I was used to use grains inside exec module which were in turn used inside an ext_pillar module.

Until one month earlier, those grains used to resolve to the master grains, but are now resolving to the minion which is asking for it's pillar.

Is that the wanted behavior, or just the emergence of a new regression ?

kiorky avatar Nov 14 '14 16:11 kiorky

ThomasHatch just said me: the grains in ext_pillar should be the minion grains, that was a bug cc @thatch45

kiorky avatar Nov 14 '14 16:11 kiorky

Thanks for the report..

pitatus avatar Nov 14 '14 16:11 pitatus

This is not a bug but maybe a documentation miss, as a bad student, i do not read many docs on saltstack now that i'm used to it, just for the documentation team not to forget to mention about it if it is not clear.

kiorky avatar Nov 15 '14 13:11 kiorky

I don't actually think this needs to be explicitly documented -- I think having minion grains in ext_pillar calls is intuitive, as that's how it works in normal pillar as well. The reason this caught you is because you came to rely on the behavior that was a bug.

Based on that, I'm going to close this issue. Please comment if you disagree.

basepi avatar Jun 16 '15 22:06 basepi