From 0b5b914e312c25a956b412c0702064b65fafdab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Fri, 14 May 2021 15:07:46 +0200 Subject: [PATCH] Add THT Jinja2 data sources as stack output This simply stores the data structure in the network_data and roles_data YAML files provided with the -n and -r options when deploying the overcloud. This can be generally useful for troubleshooting. Also the 'overcloud node extract provision' command rely on the roles data source. Storing it in the stack means we can get to the data in case the user missplaced the file originally used, or in the case where we want to automate the process for all deployed stacks. NOTE: The idea is to backport this to the release intended as the upgrade from release, so that the follow on change Icc6a7a438e9d0f39d003d1cf8ed84d6fb1d5485a can use it during upgrade. Related: blueprint network-data-v2-ports Change-Id: I1efecdcd7afa6af3e6b4b26f4435198836db535f --- overcloud.j2.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml index d036b2fcf2..49daccc845 100644 --- a/overcloud.j2.yaml +++ b/overcloud.j2.yaml @@ -1362,3 +1362,8 @@ outputs: map_merge: - {get_attr: [AnsibleHostVars, value]} - {get_param: ExtraAnsibleHostVars} + TripleoHeatTemplatesJinja2RenderingDataSources: + description: The role_data and the network_data used when rendering the THT Jinja2 templates + value: + roles_data: {{ roles }} + networks_data: {{ networks }}