3

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 Answers1

1

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

Eren Güven
  • 2,314
  • 19
  • 27