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