tripleo-ci/undercloud-configs/net-config-multinode.yaml
James Slagle cb28c9bd6d Nic config for containerized undercloud
Adds a nic config template for the containerized undercloud. The
template creates a br-ctlplane bridge with no members, which matches the
same network configuration we use for all other multinode jobs.

Also sets the $LOCAL_IP (--local-ip) option to the default of
192.168.24.1 instead of reading the ip address off the interface with
the default route. Previously, endpoints were getting created with the
external IP address of the multinode instance, which resulted in
some issues (provisioning interface not assigned an IP in the same cidr
as the ctlplane subnet).

Change-Id: Ife080590e377d0e41881ba906be65908c62591b3
2017-05-16 10:58:43 +00:00

66 lines
1.9 KiB
YAML

heat_template_version: ocata
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