Merge "Fix wrong permission on database during mysql_init tasks." into stable/pike
[apex-tripleo-heat-templates.git] / docker / services / neutron-plugin-ml2.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack containerized Neutron ML2 Plugin configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   ServiceData:
13     default: {}
14     description: Dictionary packing service data
15     type: json
16   ServiceNetMap:
17     default: {}
18     description: Mapping of service_name -> network name. Typically set
19                  via parameter_defaults in the resource registry.  This
20                  mapping overrides those in ServiceNetMapDefaults.
21     type: json
22   DockerNeutronConfigImage:
23     description: The container image to use for the neutron config_volume
24     type: string
25   DefaultPasswords:
26     type: json
27   RoleName:
28     default: ''
29     description: Role name on which the service is applied
30     type: string
31   RoleParameters:
32     default: {}
33     description: Parameters specific to the role
34     type: json
35
36 resources:
37
38   NeutronBase:
39     type: OS::TripleO::Docker::NeutronMl2PluginBase
40     properties:
41       EndpointMap: {get_param: EndpointMap}
42       ServiceData: {get_param: ServiceData}
43       ServiceNetMap: {get_param: ServiceNetMap}
44       DefaultPasswords: {get_param: DefaultPasswords}
45       RoleName: {get_param: RoleName}
46       RoleParameters: {get_param: RoleParameters}
47
48 outputs:
49   role_data:
50     description: Role data for the Neutron ML2 Plugin role.
51     value:
52       service_name: {get_attr: [NeutronBase, role_data, service_name]}
53       config_settings:
54         map_merge:
55           - get_attr: [NeutronBase, role_data, config_settings]
56       logging_source: {get_attr: [NeutronBase, role_data, logging_source]}
57       logging_groups: {get_attr: [NeutronBase, role_data, logging_groups]}
58       step_config: &step_config
59         get_attr: [NeutronBase, role_data, step_config]
60       service_config_settings: {get_attr: [NeutronBase, role_data, service_config_settings]}
61       # BEGIN DOCKER SETTINGS
62       puppet_config:
63         config_volume: 'neutron'
64         puppet_tags: neutron_plugin_ml2
65         step_config: *step_config
66         config_image: {get_param: DockerNeutronConfigImage}
67       kolla_config: {}
68       docker_config: {}