Browse Source

Network config with ansible for ci jobs using multi-nics

OVB jobs use a different multi-nic nic config. Generate that with
ansible.

Depends-On: https://review.opendev.org/754491
Change-Id: I5ea2615e773ee7656e85f172695ad08cd0312c56
changes/94/754494/9
Rabi Mishra 9 months ago
parent
commit
0d51947872
2 changed files with 22 additions and 11 deletions
  1. +18
    -6
      ci/environments/network/multiple-nics/network-environment.yaml
  2. +4
    -5
      net-config-noop.j2.yaml

+ 18
- 6
ci/environments/network/multiple-nics/network-environment.yaml View File

@ -1,13 +1,25 @@
resource_registry:
OS::TripleO::BlockStorage::Net::SoftwareConfig: nic-configs/cinder-storage.yaml
OS::TripleO::Compute::Net::SoftwareConfig: nic-configs/compute-dvr.yaml
OS::TripleO::Controller::Net::SoftwareConfig: nic-configs/controller.yaml
OS::TripleO::CellController::Net::SoftwareConfig: nic-configs/controller.yaml
OS::TripleO::ObjectStorage::Net::SoftwareConfig: nic-configs/swift-storage.yaml
OS::TripleO::CephStorage::Net::SoftwareConfig: nic-configs/ceph-storage.yaml
OS::TripleO::BlockStorage::Net::SoftwareConfig: ../../../../net-config-noop.yaml
OS::TripleO::Compute::Net::SoftwareConfig: ../../../../net-config-noop.yaml
OS::TripleO::Controller::Net::SoftwareConfig: ../../../../net-config-noop.yaml
OS::TripleO::CellController::Net::SoftwareConfig: ../../../../net-config-noop.yaml
OS::TripleO::ObjectStorage::Net::SoftwareConfig: ../../../../net-config-noop.yaml
OS::TripleO::CephStorage::Net::SoftwareConfig: ../../../../net-config-noop.yaml
parameter_defaults:
ControllerNetworkConfigTemplate: 'templates/ci/multiple_nics.j2'
ControllerNetworkConfigWithAnsible: true
ComputeNetworkConfigTemplate: 'templates/ci/multiple_nics.j2'
ComputeNetworkConfigWithAnsible: true
BlockStorageNetworkConfigTemplate: 'templates/ci/multiple_nics.j2'
BlockStorageNetworkConfigWithAnsible: true
CellControllerNetworkConfigTemplate: 'templates/ci/multiple_nics.j2'
CellControllerNetworkConfigWithAnsible: true
ObjectStorageNetworkConfigTemplate: 'templates/ci/multiple_nics.j2'
ObjectStorageNetworkConfigWithAnsible: true
CephStorageNetworkConfigTemplate: 'templates/ci/multiple_nics.j2'
CephStorageNetworkConfigWithAnsible: true
ExternalNetCidr: 10.0.0.0/24
ExternalAllocationPools: [{"start": "10.0.0.10", "end": "10.0.0.50"}]
ExternalInterfaceDefaultRoute: 10.0.0.1


+ 4
- 5
net-config-noop.j2.yaml View File

@ -72,12 +72,11 @@ parameters:
resources:
OsNetConfigImpl:
type: OS::Heat::StructuredConfig
type: OS::Heat::Value
properties:
group: apply-config
config: {}
value: {}
outputs:
OS::stack_id:
config:
description: The OsNetConfigImpl resource.
value: {get_resource: OsNetConfigImpl}
value: {get_attr: [OsNetConfigImpl, value]}

Loading…
Cancel
Save