3
votes

We'd like to add some boilerplate information to file written to minions via Salt; basically, notice that the file is managed by Salt, and the state that generates it.

I can't find the state information. It doesn't appear to be in opts. salt-call state.sls foo provides what I'm looking for, but state.sls doesn't appear callable from a Jinja template.

Am I missing it somewhere? Or is this not possible without, say, writing a Jinja extension that digs around in Salt's sandbox?

1
I have the same needs, basically. Did you manage to find a solution? - pepoluan

1 Answers

1
votes

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