7fca73d64416b82964c82a84862f02455abffd23
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / neutron-dhcp.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron DHCP service 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   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21
22 resources:
23
24   NeutronDhcpBase:
25     type: ../neutron-dhcp.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       DefaultPasswords: {get_param: DefaultPasswords}
29       EndpointMap: {get_param: EndpointMap}
30
31 outputs:
32   role_data:
33     description: Role data for the Neutron DHCP role.
34     value:
35       service_name: neutron_dhcp
36       monitoring_subscription: {get_attr: [NeutronDhcpBase, role_data, monitoring_subscription]}
37       logging_source: {get_attr: [NeutronDhcpBase, role_data, logging_source]}
38       logging_groups: {get_attr: [NeutronDhcpBase, role_data, logging_groups]}
39       config_settings:
40         map_merge:
41           - get_attr: [NeutronDhcpBase, role_data, config_settings]
42           - tripleo::profile::pacemaker::neutron::enable_dhcp: True
43             neutron::agents::dhcp::enabled: false
44             neutron::agents::dhcp::manage_service: false
45       step_config: |
46         include ::tripleo::profile::pacemaker::neutron::dhcp