问题
Given how flexible jinja templating can be with saltstack and the numerous pillar variables are merged into the template; I would find it useful to be able to get salt to 'render' the full sls out to screen before i push it out. Is there a way of doing this?
回答1:
Just to answer my own question: I knew that state.show_top existed. So I tried state.show_sls, and voila! Exactly what I'm after.
来源:https://stackoverflow.com/questions/34191710/how-to-render-and-dump-the-file-sls-with-salt-stack-without-applying-it