Comment 2 for bug 1919449

Revision history for this message
Rabi Mishra (rabi) wrote :

For some strange reason we flat copy[1] the environments outside templates dir to tht_render. If there are relative references it won't work.

Heat would pickup relative files in environments (if we don't flat copy them and use existing path), but it won't jinja render the references.

The only way to fix this is to pull all references along with an environment file to the tht_render where they can be jinja rendered.

However, it's better to use in-tree env files from custom tht_dir (specified with --templates), if they or references used by them are to be jinja rendered (which works atm).

[1] https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/tripleo_deploy.py#L550-L553