aboutsummaryrefslogtreecommitdiffstats
path: root/deployed-server/deployed-server-environment-output.yaml
blob: 89c3886d5f8f472ab8f04143af13196c39c1da4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
heat_template_version: pike

parameters:
  RoleCounts:
    type: json
    default: {}
  VipMap:
    type: json
    default: {}
  DeployedServerPortMap:
    type: json
    default: {}
  DeployedServerDeploymentSwiftDataMap:
    type: json
    default: {}
  DefaultRouteIp:
    type: string
    default: 192.168.24.1

resources:

  DeployedServerPortMapParameter:
    type: OS::Heat::Value
    properties:
      type: json
      value:
        DeployedServerPortMap:
          map_merge:
            - {get_param: DeployedServerPortMap}
            - control_virtual_ip:
                fixed_ips:
                  - ip_address: {get_param: [VipMap, ctlplane]}
            - redis_virtual_ip:
                fixed_ips:
                  - ip_address: {get_param: [VipMap, redis]}

  DeployedServerEnvironment:
    type: OS::Heat::Value
    properties:
      type: json
      value:
        parameter_defaults:
          map_merge:
            - {get_attr: [DeployedServerPortMapParameter, value]}
            - DeploymentSwiftDataMap: {get_param: DeployedServerDeploymentSwiftDataMap}
            - EC2MetadataIp: {get_param: DefaultRouteIp}
            - ControlPlaneDefaultRoute: {get_param: DefaultRouteIp}
            - {get_param: RoleCounts}

outputs:
  deployed_server_environment:
    description:
      Environment data that can be used as input into the services stack when
      using split-stack.
    value: {get_attr: [DeployedServerEnvironment, value]}