Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Update some more environments to use new ansible nic config
Browse files Browse the repository at this point in the history
This changes environments missed earlier that still use old heat
nic config.

Change-Id: I9e3e3a1007103e0387314991eaf6325aa2128cb4
  • Loading branch information
rabi committed Oct 27, 2020
1 parent 55c1630 commit 42c5fa1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
12 changes: 9 additions & 3 deletions environments/network-environment-v6-all.j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ resource_registry:
# such as net-bond-with-vlans-v6.yaml, or modifying the list here.
{%- for role in roles %}
# Port assignments for the {{role.name}}
OS::TripleO::{{role.name}}::Net::SoftwareConfig:
../network/config/single-nic-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}}
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
{%- endfor %}

parameter_defaults:
# This section is where deployment-specific configuration is done
#
#
{%- for role in roles %}
{%- if 'storage' in role.tags %}
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans_storage.j2'
{%- else %}
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans.j2'
{%- endif %}
{%- endfor %}

{% for network in networks if network.enabled|default(true) %}
# Customize the IP subnets to match the local environment
{{network.name}}NetCidr: '{{network.ipv6_subnet}}'
Expand Down
11 changes: 9 additions & 2 deletions environments/network-environment-v6.j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ resource_registry:
# such as net-bond-with-vlans-v6.yaml, or modifying the list here.
{%- for role in roles %}
# Port assignments for the {{role.name}}
OS::TripleO::{{role.name}}::Net::SoftwareConfig:
../network/config/single-nic-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}}
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
{%- endfor %}

parameter_defaults:
# This section is where deployment-specific configuration is done
#
{%- for role in roles %}
{%- if 'storage' in role.tags %}
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans_storage.j2'
{%- else %}
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans.j2'
{%- endif %}
{%- endfor %}

{% for network in networks if network.enabled|default(true) %}
{%- if network.name != 'Tenant' %}
# Customize the IP subnets to match the local environment
Expand Down
11 changes: 9 additions & 2 deletions environments/network-environment.j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ resource_registry:
# such as net-bond-with-vlans.yaml, or modifying the list here.
{%- for role in roles %}
# Port assignments for the {{role.name}}
OS::TripleO::{{role.name}}::Net::SoftwareConfig:
../network/config/single-nic-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}}
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
{%- endfor %}

parameter_defaults:
# This section is where deployment-specific configuration is done
#
{%- for role in roles %}
{%- if 'storage' in role.tags %}
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans_storage.j2'
{%- else %}
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans.j2'
{%- endif %}
{%- endfor %}

{% for network in networks if network.enabled|default(true) %}
# Customize the IP subnet to match the local environment
{%- if network.ipv6|default(false) %}
Expand Down

0 comments on commit 42c5fa1

Please sign in to comment.