daschatten / generic-templater-formula

This formula generates files from pillar data and templates. Can be used to generate pillar from pillar.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generic-templater

Formula to generate files from pillar using the given jinja templates. Can be used to generate pillar from pillar.

Available states

TODO: Description

Example

  1. Define templates in pillar.generic_templater.templates
  2. Place all needed jinja templates (defined in pillar.generic_templater.templates.<template-name>.filelist) in a directory 'generic-templater' in file_roots. Templates can access pillar data from pillar.generic_templater.<template-name> in var 'config'.
  3. Create instances in pillar.generic_templater.<template-name>

See generic-templater/pillar.example.

About

This formula generates files from pillar data and templates. Can be used to generate pillar from pillar.