Use native ansible for nic configuration
This changes rest of the environments to use native ansible nic configuration. - net-2-linux-bonds-with-vlans.j2.yaml - net-bond-with-vlans.j2.yaml - net-dpdkbond-with-vlans.j2.yaml - net-single-nic-linux-bridge-with-vlans.j2.yaml Change-Id: Ib88bdd7a2ae314205d235b15995449854088d342
This commit is contained in:
parent
6de80864af
commit
c9a8988ab7
@ -6,12 +6,17 @@
|
||||
# reuses the BondInterfaceOvsOptions parameter for both bond
|
||||
# configurations. You can modify this template to have two
|
||||
# different parameters for the bonds if options differ.
|
||||
#
|
||||
# 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.
|
||||
|
||||
resource_registry:
|
||||
{%- for role in roles %}
|
||||
# Network configuration assignments for the {{role.name}}
|
||||
OS::TripleO::{{role.name}}::Net::SoftwareConfig: ../network/config/2-linux-bonds-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}}
|
||||
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 %}
|
||||
{{role.name}}NetworkConfigWithAnsible: true
|
||||
{%- endfor %}
|
||||
|
@ -14,6 +14,16 @@
|
||||
|
||||
resource_registry:
|
||||
{%- for role in roles %}
|
||||
# Network configuration assignments for the {{role.name}}
|
||||
OS::TripleO::{{role.name}}::Net::SoftwareConfig: ../network/config/bond-with-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}}
|
||||
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/bonds_vlans/bonds_vlans_dpdk.j2'
|
||||
{%- elif 'storage' in role.tags %}
|
||||
{{role.name}}NetworkConfigTemplate: 'templates/bonds_vlans/bonds_vlans_storage.j2'
|
||||
{%- else %}
|
||||
{{role.name}}NetworkConfigTemplate: 'templates/bonds_vlans/bonds_vlans.j2'
|
||||
{%- endif %}
|
||||
{{role.name}}NetworkConfigWithAnsible: true
|
||||
{%- endfor %}
|
||||
|
@ -9,11 +9,17 @@
|
||||
# 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.
|
||||
resource_registry:
|
||||
{%- for role in roles if role.name != "Compute" %}
|
||||
# Network configuration assignments for the {{role.name}}
|
||||
OS::TripleO::{{role.name}}::Net::SoftwareConfig: ../network/config/bond-with-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}}
|
||||
{%- endfor %}
|
||||
|
||||
# FIXME this won't handle any custom compute roles, instead we should have a generic way to override this
|
||||
OS::TripleO::Compute::Net::SoftwareConfig: ../network/config/bond-with-vlans/compute-dpdk.yaml
|
||||
resource_registry:
|
||||
{%- for role in roles %}
|
||||
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
|
||||
{%- endfor %}
|
||||
parameter_defaults:
|
||||
{%- for role in roles %}
|
||||
{%- if 'compute' not in role.tags %}
|
||||
{{role.name}}NetworkConfigTemplate: 'templates/bonds_vlans/bonds_vlans.j2'
|
||||
{%- else %}
|
||||
{{role.name}}NetworkConfigTemplate: 'templates/bonds_vlans/bonds_vlans_dpdk.j2'
|
||||
{%- endif %}
|
||||
{{role.name}}NetworkConfigWithAnsible: true
|
||||
{%- endfor %}
|
||||
|
@ -5,8 +5,17 @@
|
||||
# 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.
|
||||
|
||||
resource_registry:
|
||||
{%- for role in roles %}
|
||||
# Network configuration assignments for the {{role.name}}
|
||||
OS::TripleO::{{role.name}}::Net::SoftwareConfig: ../network/config/single-nic-linux-bridge-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}}
|
||||
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
|
||||
{%- endfor %}
|
||||
parameter_defaults:
|
||||
{%- for role in roles %}
|
||||
{%- if 'storage' in role.tags %}
|
||||
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_linux_bridge_vlans/single_nic_linux_bridge_vlans_storage.j2'
|
||||
{%- else %}
|
||||
{{role.name}}NetworkConfigTemplate: 'templates/single_nic_linux_bridge_vlans/single_nic_linux_bridge_vlans.j2'
|
||||
{%- endif %}
|
||||
{{role.name}}NetworkConfigWithAnsible: true
|
||||
{%- endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user