Merge "Add parameter for UndercloudNetConfigOverride"

This commit is contained in:
Zuul 2018-05-02 16:21:59 +00:00 committed by Gerrit Code Review
commit 415e1a51fd

View File

@ -31,6 +31,16 @@ parameters:
type: number type: number
constraints: constraints:
- range: { min: 1000, max: 65536 } - range: { min: 1000, max: 65536 }
UndercloudNetConfigOverride:
default: {}
description: Custom JSON data to be used to override the os-net-config data in this template. This is meant to be used by net_config_override parameter in tripleoclient to provide an easy means to pass in custom net configs for the Undercloud.
type: json
conditions:
undercloud_net_config_override:
not:
equals: [{get_param: UndercloudNetConfigOverride}, {}]
resources: resources:
OsNetConfigImpl: OsNetConfigImpl:
type: OS::Heat::SoftwareConfig type: OS::Heat::SoftwareConfig
@ -45,7 +55,10 @@ resources:
get_file: network/scripts/run-os-net-config.sh get_file: network/scripts/run-os-net-config.sh
params: params:
$network_config: $network_config:
network_config: if:
- undercloud_net_config_override
- {get_param: UndercloudNetConfigOverride}
- network_config:
- type: ovs_bridge - type: ovs_bridge
name: br-ctlplane name: br-ctlplane
use_dhcp: false use_dhcp: false