Details
-
Type:
Story
-
Status: Open
-
Priority:
(None)
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Promise type: files
-
Labels:None
Description
We recently added jinja2 templating support to ncf (with a Rudder agent) using:
- A "dumpdatastate()" function that outputs the datastate in json format into a file
- A python script that, using this datastate file and the template file, produces the output string that is then written into the destination using a files promise
A possible implementation of this as a standard templating method in CFEngine would be a special modules type (like for packages) passing the datastate() on standard input to a script that would output the expanded template, which would allow to support several templating languages, what do you think about it?