Add local template generation tox task
authorDan Prince <dprince@redhat.com>
Mon, 7 Nov 2016 12:45:15 +0000 (07:45 -0500)
committerDan Prince <dprince@redhat.com>
Wed, 30 Nov 2016 21:02:44 +0000 (16:02 -0500)
commit4b5b24462b7c37bd784502d8afa341181a9fab9a
tree99777eba8c1b08b9a93900609372ef9195d051ac
parent6df32707e9698da5a647aff2b20e6fc2617ea1d2
Add local template generation tox task

This patch adds a local version of our template processing
routine so that developers can more quickly view the templates
that are actually getting generated. I've noticed multiple developers
now do a full deployment with 'overcloud deploy' only to download
the swift container with the generated templates. This simple task
avoids that step by allowing developers to generate it locally.

It also aims to preserve the ability to use t-h-t templates directly
with Heat (instead of going through Mistral) should users wish to do that.
The new undercloud heat installer requires the ability to generate
templates without requiring Mistral and Swift to do so.

Ideally the Mistral API workflow would use this same code
so perhaps in the future we might modify that routine to:

 -download swift tarball containing the templates
 -run this local routine that lives in t-h-t
 -re-upload the tarball of templates to the swift container

Change-Id: Ie664c9c5f455b7320a58a26f35bc403355408d9b
.gitignore
puppet/role.role.j2.yaml
requirements.txt
tools/process-templates.py [new file with mode: 0755]
tox.ini