summaryrefslogtreecommitdiff
path: root/cloudinit/templater.py
AgeCommit message (Collapse)Author
2016-12-22LICENSE: Allow dual licensing GPL-3 or Apache 2.0Jon Grimm
This has been a recurring ask and we had initially just made the change to the cloud-init 2.0 codebase. As the current thinking is we'll just continue to enhance the current codebase, its desirable to relicense to match what we'd intended as part of the 2.0 plan here. - put a brief description of license in LICENSE file - put full license versions in LICENSE-GPLv3 and LICENSE-Apache2.0 - simplify the per-file header to reference LICENSE - tox: ignore H102 (Apache License Header check) Add license header to files that ship. Reformat headers, make sure everything has vi: at end of file. Non-shipping files do not need the copyright header, but at the moment tests/ have it.
2016-06-06Change the Cheetah warning to a debug messageAndrew Jorgensen
In the absence of cheetah, which is a fairly heavy templating engine, and not strictly needed by anything in cloud-init, the only warning we saw in the logs was this one from the templater. Degrading this to a debug message makes any other warnings more relevant.
2016-05-12add feature to allow a custom template for source listChristian Ehrhardt
2015-01-22Low hanging Python 3 fruit.Barry Warsaw
2014-11-18retain trailing newline from template files when using jinja2Scott Moser
sources.list was where this showed itself, but all rendered files would have their newline stripped. LP: #1355343
2014-07-18Add non braces matching and a few more testsJoshua Harlow
2014-07-16Log the renderer type when rendering filesJoshua Harlow
2014-07-16Add basic renderer support and more robust import handlingJoshua Harlow
2014-03-07Add some basic template testsJoshua Harlow
2014-03-05Switch to jinja & adjust tplsJoshua Harlow
2014-03-02Allow the usage of mako templatesJoshua Harlow
Mako is a python 2.6->3.x compatible templating engine, allow its optional usage (until we can depricate cheetah) by allowing for specifying a template file header that can define which template engine to use. For now support cheetah (the default) and if specified support mako as well.
2012-07-09Revert back to using cheetah + adjust resultant code + templatesJoshua Harlow
At this point there is a mixture of "double hash" cheetah comments and '#*' cheetah comments.
2012-06-16Allow file rendering to pass in a file permission when writing.Joshua Harlow
2012-06-15Change variable names to reflect usage correctlyJoshua Harlow
2012-06-11Start using tempita instead of the more complicated cheetah.Joshua Harlow
2012-06-09Remove unused imports and reduce lines needed + add copy right.Joshua Harlow
2012-06-08Ensure files end with ".tmpl" if they don't initially.Joshua Harlow
2012-06-071. Adding some new helper files that split off file inclusion, templating, ↵Joshua Harlow
importing, constant usage. 1. Move all datasources to a new sources directory 1. Rename some files to be more consistent with python file/module naming.