DEV Community

Discussion on: Configuration Templating Language

Collapse
 
tttfifo profile image
Todor Todorov

Hi Maxime,

Thanks for the comment.
Jinja is awesome, no doubt - and Ansible is using jinja for templating.

The difference from jinja is that you can have pure python embedded in templating, not some other syntax.

For example this is possible in template:

{{
import sys

def one():
    return 1

i = 3
}}

If you are interested - there is much more information in the README:

github.com/ttt-fifo/conftl

Second part of your question:

Ansible is more advanced system, which can connect remote servers, doing full configuration management.
As I said above: for configuration templating Ansible uses Jinja.

conftl is doing just the templating, without the other Ansible features.

My next project would be to connect conftl with Ansible - maybe by developing an action plugin, we will see...

Thank you for the comment!

Collapse
 
notsag profile image
Maxime Gaston • Edited

Ok! Thanks for the explanation.
This jinja alternative looks quite promising, I'm interested in seeing it evolves.

Kudos 👍