tripleo-heat-templates/environments/net-multiple-nics.j2.yaml

29 lines
1.2 KiB
YAML

# This template configures each role to use a separate NIC for
# each isolated network.
# This template assumes use of network-isolation.yaml.
#
# FIXME: if/when we add functionality to heatclient to include heat
# environment files we should think about using it here to automatically
# include network-isolation.yaml.
#
# There is no longer a requirement to use net-multiple-nics-v6.yaml for
# nodes when deploying with IPv6. You may now define both an IPv4 network
# and an IPv6 network as default routes by adding both networks to the
# default_route_networks list for the Controller role in roles_data.yaml.
# Then include this environment file to use bond-with-vlans NIC configs.
resource_registry:
{%- for role in roles %}
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
{%- endfor %}
parameter_defaults:
{%- for role in roles %}
{%- if 'external_bridge' in role.tags %}
{{role.name}}NetworkConfigTemplate: 'templates/multiple_nics/multiple_nics_dvr.j2'
{%- elif 'ovsdpdk' in role.tags %}
{{role.name}}NetworkConfigTemplate: 'templates/multiple_nics/multiple_nics_dpdk.j2'
{%- else %}
{{role.name}}NetworkConfigTemplate: 'templates/multiple_nics/multiple_nics.j2'
{%- endif %}
{%- endfor %}