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
This commit is contained in:
Rabi Mishra 2020-09-26 12:33:17 +05:30
parent 6ec975c113
commit 0d51947872
2 changed files with 22 additions and 11 deletions

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

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]}