Including jinja from pillar from salt-stack

Solution 1:

Yes, you can use jinja in your pillar sls files.

https://docs.saltstack.com/en/latest/topics/pillar/

Solution 2:

Yes. Ensure that the file starts with the following on the first line.

#!jinja|yaml|gpg

This will ensure that all the pre-processors are executed, in this case jinja, yaml, and gpg decryption.