The state files for everything include a lot of Jinja2-like template includes, if statements, etc. I’m trying to learn how to create my own state files and thought it would be easier to figure things out if I could see the state files after they run through the template bindings. Is there any way I can save the parsed .sls
and .top
files so I can see what they look like before they are applied?
Not really save as sls
file, but there is state.show_lowstate
function that does similar thing. Simply call it instead of state.highstate
and you should get the info.
1 Like