I get this error message after refactoring my sls files.
I created new sls files and use the include
directive to have more modular formulars.
salt:/srv # salt-ssh w123 -v state.sls monitoring
Executing job with jid 20160512154840991359
-------------------------------------------
[ERROR ] Rendering exception occurred :Jinja variable 'system_home' is undefined
[CRITICAL] Rendering SLS 'base:monitoring.service' failed: Jinja variable 'system_home' is undefined
w123:
- Rendering SLS 'base:monitoring.service' failed: Jinja variable 'system_home' is undefined
How can I get the SLS filename and line number where the variable is undefined?
Best Answer
This one of things kills me in regard to SaltStack! Unclear error messages, and it doesn't tell you where is the problem!
Anyway, check that post "Debugging Salt and Salt States", try to debug the error using "salt-call".