Merge "Deployed networks template"
This commit is contained in:
commit
1e40a1c3a4
59
network/deployed_networks.yaml
Normal file
59
network/deployed_networks.yaml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
heat_template_version: rocky
|
||||||
|
|
||||||
|
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]}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user