Merge "Remove hardcoded enable_load_balancer from Controller role"
[apex-tripleo-heat-templates.git] / deployed-server / deployed-server-environment-output.yaml
1 heat_template_version: pike
2
3 parameters:
4   RoleCounts:
5     type: json
6     default: {}
7   VipMap:
8     type: json
9     default: {}
10   DeployedServerPortMap:
11     type: json
12     default: {}
13   DeployedServerDeploymentSwiftDataMap:
14     type: json
15     default: {}
16   DefaultRouteIp:
17     type: string
18     default: 192.168.24.1
19
20 resources:
21
22   DeployedServerPortMapParameter:
23     type: OS::Heat::Value
24     properties:
25       type: json
26       value:
27         DeployedServerPortMap:
28           map_merge:
29             - {get_param: DeployedServerPortMap}
30             - control_virtual_ip:
31                 fixed_ips:
32                   - ip_address: {get_param: [VipMap, ctlplane]}
33             - redis_virtual_ip:
34                 fixed_ips:
35                   - ip_address: {get_param: [VipMap, redis]}
36
37   ResourceRegistry:
38     type: OS::Heat::Value
39     properties:
40       type: json
41       value:
42           OS::TripleO::DeployedServer::ControlPlanePort: tripleo-heat-templates/deployed-server/deployed-neutron-port.yaml
43           OS::TripleO::Network::Ports::ControlPlaneVipPort: tripleo-heat-templates/deployed-server/deployed-neutron-port.yaml
44
45   DeployedServerEnvironment:
46     type: OS::Heat::Value
47     properties:
48       type: json
49       value:
50         resource_registry:
51           {get_attr: [ResourceRegistry, value]}
52         parameter_defaults:
53           map_merge:
54             - {get_attr: [DeployedServerPortMapParameter, value]}
55             - DeploymentSwiftDataMap: {get_param: DeployedServerDeploymentSwiftDataMap}
56             - EC2MetadataIp: {get_param: DefaultRouteIp}
57             - ControlPlaneDefaultRoute: {get_param: DefaultRouteIp}
58             - {get_param: RoleCounts}
59
60 outputs:
61   deployed_server_environment:
62     description:
63       Environment data that can be used as input into the services stack when
64       using split-stack.
65     value: {get_attr: [DeployedServerEnvironment, value]}