tripleo-heat-templates/environments/net-2-linux-bonds-with-vlans.j2.yaml
Rabi Mishra e9e0eb3d97 Make NetworkConfigWithAnsible parameter non-role specific
This changes the parameter to non-role specific and by default
true. The dependant python-tripleoclient patch adds a check
to ensure that we only allow usage of old heat nic congigs with
'NetworkConfigWithAnsible: false'.

Change-Id: Ie37bdfe64eb1b33afe326161fc6f99601addb7b5
2020-10-15 19:41:27 +05:30

22 lines
910 B
YAML

# This template configures each role to use a pair of bonded nics (nic2 and
# nic3) and configures an IP address on each relevant isolated network
# for each role. This template assumes use of network-isolation.yaml.
#
# NOTE: This version of the templates uses two Linux bonds, but
# reuses the BondInterfaceOvsOptions parameter for both bond
# configurations. You can modify this template to have two
# different parameters for the bonds if options differ.
resource_registry:
{%- for role in roles %}
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
{%- endfor %}
parameter_defaults:
{%- for role in roles %}
{%- if 'ovsdpdk' in role.tags %}
{{role.name}}NetworkConfigTemplate: 'templates/2_linux_bonds_vlans/2_linux_bonds_vlans_dpdk.j2'
{%- else %}
{{role.name}}NetworkConfigTemplate: 'templates/2_linux_bonds_vlans/2_linux_bonds_vlans.j2'
{%- endif %}
{%- endfor %}