From c43a9100fa7cd655b0b40af3b50d74a7d690041c Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 21 Feb 2018 10:25:36 -0800 Subject: [PATCH] Import net-config-simple-bridge.yaml from tropleo-ci repo This file has been used for the containerized undercloud so we can deploy a simple bridge with os-net-config. We're moving the environments used for CI into THT, so we can branch them. This is part of this effort. Change-Id: I4255120e12123568a388c75956e6e8d32dec66aa --- ci/common/net-config-simple-bridge.yaml | 65 +++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 ci/common/net-config-simple-bridge.yaml diff --git a/ci/common/net-config-simple-bridge.yaml b/ci/common/net-config-simple-bridge.yaml new file mode 100644 index 0000000000..7176536f65 --- /dev/null +++ b/ci/common/net-config-simple-bridge.yaml @@ -0,0 +1,65 @@ +heat_template_version: queens +description: > + Software Config to drive os-net-config for a simple bridge. +parameters: + ControlPlaneIp: + default: '' + description: IP address/subnet on the ctlplane network + type: string + ControlPlaneSubnetCidr: # Override this via parameter_defaults + default: '24' + description: The subnet CIDR of the control plane network. + type: string + ExternalIpSubnet: + default: '' + description: IP address/subnet on the external network + type: string + InternalApiIpSubnet: + default: '' + description: IP address/subnet on the internal_api network + type: string + StorageIpSubnet: + default: '' + description: IP address/subnet on the storage network + type: string + StorageMgmtIpSubnet: + default: '' + description: IP address/subnet on the storage_mgmt network + type: string + TenantIpSubnet: + default: '' + description: IP address/subnet on the tenant network + type: string + ManagementIpSubnet: + default: '' + description: IP address/subnet on the management network + type: string +resources: + OsNetConfigImpl: + type: OS::Heat::SoftwareConfig + properties: + group: script + config: + str_replace: + template: + get_file: /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh + params: + $network_config: + network_config: + - type: ovs_bridge + name: br-ctlplane + use_dhcp: false + ovs_extra: + - "br-set-external-id br-ctlplane bridge-id br-ctlplane" + addresses: + - ip_netmask: + list_join: + - / + - - get_param: ControlPlaneIp + - get_param: ControlPlaneSubnetCidr + +outputs: + OS::stack_id: + description: The OsNetConfigImpl resource. + value: + get_resource: OsNetConfigImpl