tripleo-quickstart-extras/roles/undercloud-deploy/templates/undercloud-parameter-defaults.yaml.j2
Bogdan Dobrelya b3646e1383 Do not override resource_registry for UC heat
By default, provide no overrides for the resource_registry
used to deploy undercloud with heat. This allows to
use t-h-t defaults, by quickstart default, and seems better
than running with opinionated values.

Change-Id: I7025965f612acde88690336cb353c8a91b6f543d
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-10-01 11:56:17 +02:00

14 lines
675 B
Django/Jinja

{#
This takes advantage of the fact that valid JSON is also
valid YAML. The default to_nice_yaml filter doesn't quote strings,
which can cause unexpected implicit type conversion when the
resulting YAML is consumed, whereas with JSON all strings are quoted.
#}
{% if undercloud_resource_registry_args %}
{% set undercloud_resource_registry = {'resource_registry': undercloud_resource_registry_args} %}
{% else %}
{% set undercloud_resource_registry = {} %}
{% endif %}
{% set undercloud_parameter_defaults = {'parameter_defaults': undercloud_network_environment_args} %}
{{ undercloud_parameter_defaults|combine(undercloud_resource_registry, recursive=True)|to_nice_json }}