Adds network/cidr mapping into a new service property
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-heat.yaml
1 heat_template_version: pike
2
3 description: >
4   Contrail Heat plugin adds Contrail specific heat resources enabling heat
5   to orchestrate Contrail
6
7 parameters:
8   ServiceData:
9     default: {}
10     description: Dictionary packing service data
11     type: json
12   ServiceNetMap:
13     default: {}
14     description: Mapping of service_name -> network name. Typically set
15                  via parameter_defaults in the resource registry.  This
16                  mapping overrides those in ServiceNetMapDefaults.
17     type: json
18   DefaultPasswords:
19     default: {}
20     type: json
21   RoleName:
22     default: ''
23     description: Role name on which the service is applied
24     type: string
25   RoleParameters:
26     default: {}
27     description: Parameters specific to the role
28     type: json
29   EndpointMap:
30     default: {}
31     description: Mapping of service endpoint -> protocol. Typically set
32                  via parameter_defaults in the resource registry.
33     type: json
34
35 resources:
36   ContrailBase:
37     type: ./contrail-base.yaml
38     properties:
39       ServiceData: {get_param: ServiceData}
40       ServiceNetMap: {get_param: ServiceNetMap}
41       DefaultPasswords: {get_param: DefaultPasswords}
42       EndpointMap: {get_param: EndpointMap}
43       RoleName: {get_param: RoleName}
44       RoleParameters: {get_param: RoleParameters}
45
46 outputs:
47   role_data:
48     description: Contrail Heat plugin
49     value:
50       service_name: contrail_heat
51       config_settings:
52         map_merge:
53           - get_attr: [ContrailBase, role_data, config_settings]
54       step_config: |
55         include ::tripleo::network::contrail::heat