322e018d999ac6824cc28be83864528329f5e4ad
[apex-tripleo-heat-templates.git] / puppet / services / neutron-dhcp.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron DHCP agent 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   NeutronEnableIsolatedMetadata:
13     default: 'False'
14     description: If True, DHCP provide metadata route to VM.
15     type: string
16
17 resources:
18
19   NeutronBase:
20     type: ./neutron-base.yaml
21
22 outputs:
23   role_data:
24     description: Role data for the Neutron DHCP agent service.
25     value:
26       service_name: neutron_dhcp
27       config_settings:
28         map_merge:
29           - get_attr: [NeutronBase, role_data, config_settings]
30           - neutron::agents::dhcp::enable_isolated_metadata: {get_param: NeutronEnableIsolatedMetadata}
31             tripleo.neutron_dhcp.firewall_rules:
32               '115 neutron dhcp input':
33                 proto: 'udp'
34                 dport: 67
35               '116 neutron dhcp output':
36                 proto: 'udp'
37                 chain: 'OUTPUT'
38                 dport: 68
39       step_config: |
40         include tripleo::profile::base::neutron::dhcp