8fc49284033254a102ef82bf554d573c852fe5fd
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-neutron-plugin.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Neutron Opencontrail plugin
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   ContrailExtensions:
30     description: List of OpenContrail extensions to be enabled
31     type: comma_delimited_list
32     default: ''
33
34 resources:
35   ContrailBase:
36     type: ./contrail-base.yaml
37     properties:
38       ServiceNetMap: {get_param: ServiceNetMap}
39       DefaultPasswords: {get_param: DefaultPasswords}
40       EndpointMap: {get_param: EndpointMap}
41       RoleName: {get_param: RoleName}
42       RoleParameters: {get_param: RoleParameters}
43
44 outputs:
45   role_data:
46     description: Role data for the Neutron Opencontrail plugin
47     value:
48       service_name: contrail_neutron_plugin
49       config_settings:
50         map_merge:
51           - get_attr: [ContrailBase, role_data, config_settings]
52           - neutron::api_extensions_path: /usr/lib/python2.7/site-packages/neutron_plugin_contrail/extensions
53             contrail::vrouter::contrail_extensions: {get_param: ContrailExtensions}
54       step_config: |
55         include tripleo::network::contrail::neutron_plugin