b6b38bce0f
This is the prep-work to drop the deployed-server-environment.yaml and makes sure the deployed server is used by default. Note that this change also makes the ControlPlanePort resource type default to the deployed neutron port, because the port should be pre-provisioned as part of baremetal node deployment process. Change-Id: I03500eb2b4a6302f35aa71ae2f81bfd0c0bf064f
76 lines
2.8 KiB
YAML
76 lines
2.8 KiB
YAML
# DeployedNetworkEnvironment parameter value generated from the networks data
|
|
# file. Can be used instead of provisioning networks to deploy without Neutron.
|
|
|
|
resource_registry:
|
|
OS::TripleO::Network: ../network/deployed_networks.yaml
|
|
|
|
# Role ports
|
|
{%- for role in roles %}
|
|
{%- for network in networks if network.enabled|default(true) and network.name in role.networks %}
|
|
OS::TripleO::{{ role.name }}::Ports::{{ network.name }}Port: ../network/ports/deployed_{{ network.name_lower }}.yaml
|
|
{%- endfor %}
|
|
{%- endfor %}
|
|
|
|
# VIP ports
|
|
OS::TripleO::Network::Ports::ControlPlaneVipPort: ../network/ports/deployed_vip_ctlplane.yaml
|
|
{%- for network in networks if network.enabled|default(true) and network.vip %}
|
|
OS::TripleO::Network::Ports::{{ network.name }}VipPort: ../network/ports/deployed_vip_{{ network.name_lower }}.yaml
|
|
{%- endfor %}
|
|
|
|
parameter_defaults:
|
|
|
|
DeployedNetworkEnvironment:
|
|
net_attributes_map:
|
|
{%- for network in networks if network.enabled|default(true) %}
|
|
{%- set dns_domain = network.dns_domain|default(network.name_lower ~ '.localdomain.') %}
|
|
{{ network.name_lower }}:
|
|
network:
|
|
dns_domain: {{ dns_domain }}
|
|
mtu: {{ network.mtu }}
|
|
name: {{ network.name_lower }}
|
|
tags:
|
|
- tripleo_network_name={{ network.name }}
|
|
- tripleo_net_idx={{ loop.index - 1 }}
|
|
- tripleo_vip={{ network.vip }}
|
|
subnets:
|
|
{%- for subnet in network.subnets %}
|
|
{{ subnet }}:
|
|
{%- if not network.ipv6 %}
|
|
cidr: {{ network.subnets[subnet].ip_subnet }}
|
|
gateway_ip: {{ network.subnets[subnet].gateway_ip }}
|
|
host_routes: {{ network.subnets[subnet].routes | default([]) }}
|
|
ip_version: 4
|
|
{%- else %}
|
|
cidr: {{ network.subnets[subnet].ipv6_subnet }}
|
|
gateway_ip: {{ network.subnets[subnet].gateway_ipv6 }}
|
|
host_routes: {{ network.subnets[subnet].routes_ipv6 | default([]) }}
|
|
ip_version: 6
|
|
{%- endif %}
|
|
dns_nameservers: []
|
|
name: {{ subnet }}
|
|
tags:
|
|
{%- if network.subnets[subnet].vlan %}
|
|
- tripleo_vlan_id={{ network.subnets[subnet].vlan }}
|
|
{%- else %}
|
|
[]
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{%- endfor %}
|
|
|
|
net_cidr_map:
|
|
{%- for network in networks if network.enabled|default(true) %}
|
|
{{ network.name_lower }}:
|
|
{%- for subnet in network.subnets %}
|
|
{%- if not network.ipv6 %}
|
|
- {{ network.subnets[subnet].ip_subnet }}
|
|
{%- else %}
|
|
- {{ network.subnets[subnet].ipv6_subnet }}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{%- endfor %}
|
|
|
|
net_ip_version_map:
|
|
{%- for network in networks if network.enabled|default(true) %}
|
|
{{ network.name_lower }}: {{ "6" if network.ipv6 else "4" }}
|
|
{%- endfor %}
|