Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.
This repository was archived by the owner on May 1, 2023. It is now read-only.

could this be converted into a jinja2 -> sls "previewer"? #1

@TheBigBear

Description

@TheBigBear

@whytewolf I am maintaining most of the new 'salt-winrepo-ng' repo and ever since this added the ability to use and mix/in jinja2 templatized code, I find myself wondering, if it is correct and will it render, etc, when I write new 'salt-winrepo-ng' sls files. And more than once I managed to submit broken sls files that had syntax errors or were missing parts, and if I had tried rendering them before submitting them, I could have avoided those. (see saltstack/salt#28899 )

To that end I tried writing a simple python loop to rneder the jinja2 in the sls file. ( see saltstack/salt#28898 )

But I didn't get very far. But now I have seen this simple 'salt-debug' module of yours. Do you think if it used/added the 'tpldir' functionality (see saltstack/salt#28898 (comment) ) I could have it look at (or render) local files that aren't yet somewhere under the "file_roots://" on the master? (also see saltstack/salt#29063 (comment) )

Hoping that you can give helpful input on some of these?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions