Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toml Jinja filter #41944

Open
ghost opened this issue Jun 26, 2017 · 2 comments
Open

Toml Jinja filter #41944

ghost opened this issue Jun 26, 2017 · 2 comments
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Milestone

Comments

@ghost
Copy link

ghost commented Jun 26, 2017

Description of Issue/Question

Lots of software, the TICK stack in particular, uses Toml for configuration files. Writing pillar data in Toml is quite difficult in Salt and as far as I'm aware requires writing your own Toml encoder in Jinja using macros. It would be great if there was a Toml filter, like we have JSON and Yaml filters, so we could do:

{{ config | toml }}

to write a Toml configuration file.

@ghost ghost changed the title Toml Jinja filer Jun 26, 2017
@garethgreenaway garethgreenaway added this to the Approved milestone Jun 26, 2017
@garethgreenaway garethgreenaway added the Feature new functionality including changes to functionality and code refactors, etc. label Jun 26, 2017
@ghost
Copy link
Author

ghost commented Jun 26, 2017

I was thinking something like this #41946

@mchugh19
Copy link
Contributor

This was merged as a serializer in #45054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc.
2 participants