Merge "Pass ServiceNetMap to services"
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / neutron-server.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron Server with Pacemaker configured with Puppet.
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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   NeutronL3HA:
19     default: true
20     description: Whether to enable HA for virtual routers
21     type: boolean
22
23 resources:
24
25   NeutronServerBase:
26     type: ../neutron-server.yaml
27     properties:
28       ServiceNetMap: {get_param: ServiceNetMap}
29       EndpointMap: {get_param: EndpointMap}
30
31 outputs:
32   role_data:
33     description: Role data for the Neutron Server.
34     value:
35       service_name: neutron_server
36       config_settings:
37         map_merge:
38           - get_attr: [NeutronServerBase, role_data, config_settings]
39           - neutron::server::enabled: false
40             neutron::server::manage_service: false
41             neutron::server::l3_ha: {get_param: NeutronL3HA}
42       step_config: |
43         include ::tripleo::profile::pacemaker::neutron::server