Syntax problems are multilayered in Solta (for example, Jinja → YAML → state function arguments), and there is no tool to cover them.
A quick answer based on this related issue should trigger a multi-level parsing:
salt-call state.show_highstate | tee highstate.output.yaml salt-call state.show_sls [state_id] | tee state_id.output.yaml
The show_* functions display status data when the minion sees this before execution.
Using a salt-call on the minion side (instead of salt on the main side) often provides better debugging options - this is basically a preference.
Problems can also occur in columns or grains (make sure that all necessary data is compiled and exists as expected):
salt-call pillar.items | tee pillar.output.yaml salt-call grains.items | tee grains.output.yaml
As @ cyfur01 mentioned, the current states directly (with test mode or not) is the last step to troubleshooting:
salt-call state.highstate test=True | tee highstate.output.yaml salt-call state.sls [state_id] test=True | tee state_id.output.yaml
uvsmtid
source share