salt.modules.slsutil not working as documented #40294
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
P2
Priority 2
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue/Question
slsutil as documented does not work. I suspect it's a file path issue, it looks like the file on the master is not sent to the minion.
Please suggest either a workaround or a fix, as I have a complex map file for which I need to use Python - Jinja's too limited for the task.
Setup
As per the doc link above, I've created the following files (simplified example):
rhn/map.sls
rhn/init.sls
Now I execute:
salt 'saltdev-c6-minion' state.show_sls rhn
And the result is:
As it can be seen,
{{ rhn_config }}
has not been resolved toteststring
.Steps to Reproduce Issue
Use the example above. Also, issued the following:
salt 'saltdev-c6-minion' state.apply rhn test=True
And the error returned is:
I've tried specifying the path as:
map.sls
/srv/salt/rhn/map.sls
rhn/map.sls
salt://rhn/map.sls
None of them works.
Further testing:
salt 'saltdev-c6-minion' slsutil.renderer "/var/cache/salt/minion/files/base/rhn/init.sls"
- Works, renders the SLS file (still without getting rhn_config variablle)salt 'saltdev-c6-minion' slsutil.renderer "/srv/salt/rhn/init.sls"
- Returns an empty result.Wether I execute the module in CLI mode or inside a state, the error is the same on the minion:
Template does not exist: /srv/salt/rhn/init.sls
orTemplate does not exist: map.sls
, depending on which path I use.Versions Report
The text was updated successfully, but these errors were encountered: