Introspection in Jinja Template in SaltStack

We would like to add some template files to a file written for minions via Salt; basically, notice that the file is managed by Salt, as well as the state that generates it.

I cannot find the status information. It seems he is not in opts

. salt-call state.sls foo

provides what I'm looking for, but state.sls

cannot be called from a Jinja template.

Did I miss something? Or is this not possible without, say, writing a Jinja extension that sandboxes Salt?

+3


source to share


1 answer


Have you checked if salt.renderers.jinja # supports debugging what you need?



+1


source







All Articles