shantanoo-desai / komponist

A Composer for your favorite IoT/ IIoT container stacks with Ansible + Jinja2 + Docker Compose v2
GNU Affero General Public License v3.0
25 stars 2 forks source link

Insert License Copyright into the final generated files #39

Closed shantanoo-desai closed 1 year ago

shantanoo-desai commented 1 year ago

Description

Add the License header as a comment with a generated timestamp to the final generated file.

It might be possible to perform a lookup and use the comment Jinja2 filter to add headers to the respective files

shantanoo-desai commented 1 year ago

Method

Most templates will have {{ ansible_managed }} variable which can be conifigured into the templates to provide the generated on information.

For most files it is easier to keep the License headers into templates which will be copied one-to-one to the final generated files