madduck / reclass

A recursive external node classifier for automation tools like Ansible, Puppet, and Salt
Other
159 stars 94 forks source link

Ability to reference grains #71

Open fpytloun opened 7 years ago

fpytloun commented 7 years ago

It would be good to be able to reference grains in the similar manner as plain pillar does. It's available eg. as one of globals to external pillars: https://docs.saltstack.com/en/latest/topics/development/external_pillars.html#ext-pillar

lottspot commented 7 years ago

I think we did something similar to the pillar passthrough in the salt adapter using the __grains__ global, we could do this fairly trivially. I'll have to experiment with that a bit and see what we can come up with.