Custom networks ci nic template

With this patch, we are adding a new nic template to be used in
new featureset064 that will deploy overcloud with custom network +
custom overcloud name + IPA integration.

testproject: https://review.rdoproject.org/r/c/testproject/+/31954

Change-Id: I9962be176baafe0c3f7c78626d28466cba76b356
This commit is contained in:
Sandeep Yadav 2021-11-19 15:55:35 +05:30
parent 83ab8d6d92
commit 951a307020
1 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,69 @@
---
network_config:
- type: interface
name: nic1
mtu: 1350
use_dhcp: false
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
{% if 'ExternalCloud1' not in role_networks %}
routes:
- default: true
next_hop: {{ ctlplane_gateway_ip }}
{% endif %}
{% if 'ExternalCloud1' in role_networks or 'external_bridge' in role_tags %}
- type: ovs_bridge
name: br-ex
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
use_dhcp: false
members:
- type: interface
name: nic2
mtu: 1350
primary: true
{% endif %}
{% if 'ExternalCloud1' in role_networks %}
routes:
- ip_netmask: 0.0.0.0/0
next_hop: {{ external_cloud_1_gateway_ip | default('10.0.0.1') }}
addresses:
- ip_netmask: {{ external_cloud_1_ip }}/{{ external_cloud_1_cidr }}
{% endif %}
{% if 'InternalApiCloud1' in role_networks %}
- type: interface
name: nic3
mtu: 1350
use_dhcp: false
addresses:
- ip_netmask: {{ internal_api_cloud_1_ip }}/{{ internal_api_cloud_1_cidr }}
{% endif %}
{% if 'StorageCloud1' in role_networks %}
- type: interface
name: nic4
mtu: 1350
use_dhcp: false
addresses:
- ip_netmask: {{ storage_cloud_1_ip }}/{{ storage_cloud_1_cidr }}
{% endif %}
{% if 'StorageMgmtCloud1' in role_networks %}
- type: interface
name: nic5
mtu: 1350
use_dhcp: false
addresses:
- ip_netmask: {{ storage_mgmt_cloud_1_ip }}/{{ storage_mgmt_cloud_1_cidr }}
{% endif %}
{% if 'TenantCloud1' in role_networks %}
- type: ovs_bridge
name: br-tenant
dns_servers: {{ ctlplane_dns_nameservers }}
use_dhcp: false
addresses:
- ip_netmask: {{ tenant_cloud_1_ip }}/{{ tenant_cloud_1_cidr }}
members:
- type: interface
name: nic6
mtu: 1350
primary: true
{% endif %}