Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2515

File Templating modules

    XMLWordPrintable

    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?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amousset Alexis Mousset
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel