Closed chrisvanbreeden closed 4 years ago
First of all, thank you for your contribution!
We are, however, sadly closing this pull request due to the following reasons:
.sls
. We don't want our users to lint all of their files, scanning for possible jinja.I suggest this PR is rewritten to do the following:
.sls
filesfile.managed
is being used- template: jinja
is set- source:
is set- source:
ends with .j2
If you do wish however to use this code, you can use -r
option to specify your own set of rules in your own SaltStack linting pipeline. But we won't be merging this into the codebase.
When using file.recurse, one might have jinja templates in there that can't be renamed to have the
.j2
extension, because then they'll have that extension on filesystem.For example:
If
/nginx/vhosts/
is filled withvhost.conf.j2
files, they will be put on the server's filesystem asvhost.conf.j2
files.