47185342bd
The existing network-isolation-no-tunneling.yaml contains references to missing files. This patch generates the file with jinja to include custom networks and make it work with composable networks. Change-Id: Ibcab2f6b5ac880a6b3d7dd5126bd24facfa17322 Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com> Co-authored-by: Dan Sneddon <dsneddon@redhat.com>
35 lines
1.9 KiB
YAML
35 lines
1.9 KiB
YAML
# ******************************************************************************
|
|
# DEPRECATED: Modify networks used for custom roles by modifying the role file
|
|
# in the roles/ directory, or disable the network entirely by setting network to
|
|
# "enabled: false" in network_data.yaml.
|
|
# ******************************************************************************
|
|
# Enable the creation of Neutron networks for isolated Overcloud
|
|
# traffic and configure each role to assign ports (related
|
|
# to that role) on these networks. This version of the environment
|
|
# has no dedicated VLAN for tunneling, for deployments that use
|
|
# VLAN mode, flat provider networks, etc.
|
|
resource_registry:
|
|
# networks as defined in network_data.yaml, except for tenant net
|
|
{%- for network in networks if network.enabled|default(true) and network.name != 'Tenant' %}
|
|
OS::TripleO::Network::{{network.name}}: ../network/{{network.name_lower|default(network.name.lower())}}.yaml
|
|
{%- endfor %}
|
|
OS::TripleO::Network::Tenant: OS::Heat::None
|
|
|
|
# Port assignments for the VIPs
|
|
{%- for network in networks if network.vip and network.name != 'Tenant' %}
|
|
OS::TripleO::Network::Ports::{{network.name}}VipPort: ../network/ports/{{network.name_lower|default(network.name.lower())}}.yaml
|
|
{%- endfor %}
|
|
OS::TripleO::Network::Ports::RedisVipPort: ../network/ports/vip.yaml
|
|
|
|
# Port assignments for each role are determined by the role definition.
|
|
{%- for role in roles %}
|
|
# Port assignments for the {{role.name}} role.
|
|
{%- for network in networks %}
|
|
{%- if network.name in role.networks|default([]) and network.enabled|default(true) and network.name != 'Tenant'%}
|
|
OS::TripleO::{{role.name}}::Ports::{{network.name}}Port: ../network/ports/{{network.name_lower|default(network.name.lower())}}.yaml
|
|
{%- elif network.enabled|default(true) %}
|
|
OS::TripleO::{{role.name}}::Ports::{{network.name}}Port: ../network/ports/noop.yaml
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{% endfor %}
|