file_from_template_options

Build a file from a template (MiniJinja, Jinja2, Mustache).

⚙️ Compatible targets: Linux, Windows

Parameters

NameDocumentation
destinationDestination file (absolute path on the target node).

This parameter is required.
engineTemplate engine (defaults to minijinja).

Choices:
  • minijinja
  • jinja2
  • mustache

This parameter is optional.
dataData provided to the template, defaults to the global context if empty.

This parameter is optional.
template_stringString containing the template to be rendered.

This parameter is optional.
template_pathSource file containing a template to be rendered (absolute path on the target node).

This parameter is optional.
show_contentShow the file content in the report (defaults to true).

Choices:
  • true
  • false

This parameter is optional.

Outcome conditions

You need to replace ${destination} with its actual canonified value.

  • ✅ Ok: file_from_template_options_${destination}_ok
    • ☑️ Already compliant: file_from_template_options_${destination}_kept
    • 🟨 Repaired: file_from_template_options_${destination}_repaired
  • ❌ Error: file_from_template_options_${destination}_error

Example

method: file_from_template_options
params:
  engine: minijinja
  template_path: OPTIONAL_VALUE
  destination: VALUE
  show_content: 'true'
  data: OPTIONAL_VALUE
  template_string: OPTIONAL_VALUE

Documentation

Coming soon.