381fc8c4fe
Presently, "openstack overcloud config download" only supports the OS::HeatSoftwareDeploymentGroup (plural) resources from deploy-steps.yaml. This patch adds support to the command to also pull the deployment resources for each individual server from the OS::Heat::Value resources called "TripleODeployment", as well as other SoftwareDeploymentGroup resources not from deploy-steps.j2. See the Depends-On tripleo-heat-templates patch for how these resources are mapped. These deployments are applied by additional plays in the generated playbooks. Instead of having to reimplement each deployment in a native group:ansible, the ansible tasks just trigger the deployments by calling 55-heat-config remotely with the rendered json deployment data for whatever deployment is being applied. This method saves us from having to migrate all these resources to native ansible (and requring all end users to do so). Also included is a helper script called tripleo-config-download to run the config download outside of Mistral. implements: blueprint ansible-config-download Change-Id: I7d7f6b831b8566390d8f747fb6f45e879b0392ba Depends-On: Ic2af634403b1ab2924c383035f770453f39a2cd5
11 lines
253 B
Django/Jinja
11 lines
253 B
Django/Jinja
{{ role }}_pre_deployments:
|
|
{% for deployment in pre_deployments %}
|
|
- {{ deployment }}
|
|
{% endfor %}
|
|
|
|
{{ role }}_post_deployments: {% if not post_deployments %} [] {% endif %}
|
|
|
|
{% for deployment in post_deployments %}
|
|
- {{ deployment }}
|
|
{% endfor %}
|