From 4b5b24462b7c37bd784502d8afa341181a9fab9a Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 7 Nov 2016 07:45:15 -0500 Subject: 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 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 5d09e0a4..21e9f406 100644 --- a/tox.ini +++ b/tox.ini @@ -12,3 +12,6 @@ commands = {posargs} [testenv:pep8] commands = python ./tools/yaml-validate.py . + +[testenv:templates] +commands = python ./tools/process-templates.py . -- cgit 1.2.3-korg