Heat templates for deploying OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

59 lines
1.6 KiB

heat_template_version: wallaby
description: Create networks to split out Overcloud traffic
parameters:
DeployedNetworkEnvironment:
type: json
description: Deployed network environment
CtlplaneNetworkCidrs:
type: json
description: Cidrs for the ctlplane network.
CtlplaneNetworkAttributes:
type: json
default: {}
description: >
A map containing attributes of the undercloud ctlplane network and
subnets. NOTE: The value for this parameter is automatically populated in
the plan environment by tripleoclient.
resources:
NetworkExtraConfig:
type: OS::TripleO::Network::ExtraConfig
NetworkAttributesMap:
type: OS::Heat::Value
properties:
value:
map_merge:
- ctlplane: {get_param: CtlplaneNetworkAttributes}
- {get_param: [DeployedNetworkEnvironment, net_attributes_map]}
NetworkCidrMap:
type: OS::Heat::Value
properties:
value:
map_merge:
- ctlplane: {get_param: CtlplaneNetworkCidrs}
- {get_param: [DeployedNetworkEnvironment, net_cidr_map]}
NetworkIpVersionMap:
type: OS::Heat::Value
properties:
value:
map_merge:
- ctlplane:
yaql:
expression: $.data.items().first().last().ip_version
data: {get_param: [CtlplaneNetworkAttributes, subnets]}
- {get_param: [DeployedNetworkEnvironment, net_ip_version_map]}
outputs:
net_cidr_map:
value: {get_attr: [NetworkCidrMap, value]}
net_ip_version_map:
value: {get_attr: [NetworkIpVersionMap, value]}
net_attributes_map:
value: {get_attr: [NetworkAttributesMap, value]}